Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Mine Class Reference

#include <explosivemines.h>

Inheritance diagram for Mine:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Mine (MineTypes type, int strength, int player, GameMap *gamemap)
bool attacksunit (const Vehicle *veh)
 can the mine attack this unit
void paint (Surface &surf, SPoint pos)
 display the mine

Public Attributes

MineTypes type
int strength
 the effective punch of the mine
int player
 the player who placed the mine; range 0 .. 7

Constructor & Destructor Documentation

Mine::Mine MineTypes  type,
int  strength,
int  player,
GameMap gamemap
 

Definition at line 65 of file explosivemines.cpp.

References cgp_antipersonnelmine_lifetime, GameMap::getgameparameter(), and AgeableItem::lifetimer.


Member Function Documentation

bool Mine::attacksunit const Vehicle veh  ) 
 

can the mine attack this unit

Definition at line 40 of file explosivemines.cpp.

References chfahrend, chgetaucht, chschwimmend, cmantipersonnelmine, cmantitankmine, cmfloatmine, cmm_trooper, cmmooredmine, ContainerBase::getMap(), ContainerBase::getOwner(), ContainerBaseType::hasFunction(), Vehicle::height, ContainerBaseType::ImmuneToMines, Vehicletype::movemalustyp, PEACE, player, Vehicle::typ, and type.

void Mine::paint Surface surf,
SPoint  pos
 

display the mine

Definition at line 58 of file explosivemines.cpp.

References MineType::paint(), player, and type.

Referenced by GetAttackerImage::visit().


Member Data Documentation

int Mine::player
 

the player who placed the mine; range 0 .. 7

Definition at line 40 of file explosivemines.h.

Referenced by attacksunit(), copyFieldStep2(), and paint().

int Mine::strength
 

the effective punch of the mine

Definition at line 37 of file explosivemines.h.

Referenced by copyFieldStep2(), and tmineattacksunit::setup().

MineTypes Mine::type
 

Definition at line 34 of file explosivemines.h.

Referenced by attacksunit(), copyFieldStep2(), paint(), tspfldloaders::readfields(), and tmineattacksunit::setup().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:22 2008 for Advanced Strategic Command by  doxygen 1.4.2