ScummVM API documentation
Scumm::DefenseUnit Class Referenceabstract
Inheritance diagram for Scumm::DefenseUnit:
Scumm::AntiAirUnit Scumm::BridgeUnit Scumm::CrawlerUnit Scumm::EnergyUnit Scumm::HubUnit Scumm::MineUnit Scumm::OffenseUnit Scumm::ShieldUnit Scumm::TowerUnit

Public Member Functions

 DefenseUnit (AI *ai)
 
 DefenseUnit (DefenseUnit *inUnit, AI *ai)
 
void setID (int id)
 
void setDistanceTo (int distanceTo)
 
void setState (int state)
 
void setRadius (int radius)
 
void setArmor (int armor)
 
void setDamage (int damage)
 
void setPos (int x, int y)
 
void setCost (int cost)
 
int getID () const
 
int getDistanceTo () const
 
int getState () const
 
int getRadius () const
 
int getArmor () const
 
int getPosX () const
 
int getPosY () const
 
int getCost () const
 
virtual int getType () const =0
 
virtual Common::PointcreateTargetPos (int index, int distance, int weaponType, int sourceX, int sourceY)=0
 
virtual int selectWeapon (int index)=0
 

Protected Attributes

AI_ai
 

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