All Classes
Soldier Class Reference
+ Inheritance diagram for Soldier:
+ Collaboration diagram for Soldier:

Public Member Functions

 Soldier (const std::string &name, int health=75, int punch_damage=2, int damage2=3)
 
std::string WhoAmI () const
 
void Attack2 (Player &player) const
 
- Public Member Functions inherited from Player
 Player (const std::string &name, int health, int damage)
 
virtual void Attack (Player &other) const
 
void TakeDamage (int damage)
 
const std::string & getName () const
 
int getHealth () const
 
int getDamage () const
 
bool isAlive () const
 

Private Attributes

int damage2_
 

Detailed Description

Definition at line 6 of file Soldier.h.


The documentation for this class was generated from the following file: