#ifndef _WAR_CLASS_H
#define _WAR_CLASS_H
// a c++ war class
class war
{
public:
war() : death_toll_us(0),
death_toll_them(0),
dead_civies(0),
cost_us(0),
cost_them(0),
figures_releasable(0)
{};
~war() {};
void kill_one_of_us() { ++death_toll_us; }
void kill_one_of_them() { ++death_toll_them; }
int is_figures_releasable() { return figures_releasable; }
long get_our_death_toll() {
return (figures_releasable) ? death_toll_us : 0;
}
long get_their_death_toll() {
return (figures_releasable) ? death_toll_them : 0;
}
long get_civillian_death_toll () {
return (figures_releasable) ? dead_civies : 0;
}
private:
long death_toll_us;
long death_toll_them;
long dead_civies;
float cost_us;
float cost_them;
int figures_releasable;
};
#endif // _WAR_CLASS_H
On 18/11/2009, "Rob Myers" <[email protected]> wrote:
>2009/11/18 Pall Thayer <[email protected]>:
>> #!/usr/bin/perl
>> while(WAR){die;}
>
>#!/usr/bin/perl
>while(JUST) {WAR;}
>_______________________________________________
>NetBehaviour mailing list
>[email protected]
>http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour