All pastes #375885 Raw Edit

Enemy.cpp

public cpp v1 · immutable
#375885 ·published 2007-02-28 18:14 UTC
rendered paste body
class Enemy {  public: // getters int getHealth();  int getAmmo(); int getBlah();  // setters void setHealth(int h); void setAmmo(int a); void setBlah(int b); // AI void InitAI(); void DelAI();  // IMPORTANT NOTICE! All enemies should be added to the 'enemies' std::vector, for needs of fire() // in weapon.cpp!!  private: int health; int ammo; int blah;};void Enemy::setHealth(int h) { health = h;};void Enemy::setAmmo(int a){  ammo = a;};void Enemy::setBlah(int b){ blah = b;};int Enemy::getHealth()  { return health; };int Enemy::getAmmo()  { return ammo; };int Enemy::getBlah() { return blah; };