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

SpecificUnitEntersPolygon Class Reference

#include <gameevents.h>

Inheritance diagram for SpecificUnitEntersPolygon:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SpecificUnitEntersPolygon (int unitID_=-1)
virtual void readData (tnstream &stream)
virtual void writeData (tnstream &stream)
void setup ()
void arm ()
void triggered ()
ASCString getTypeName () const
ASCString getDetailledName () const

Protected Member Functions

virtual State getState (int player)
void fieldOperator (const MapCoordinate &mc)

Constructor & Destructor Documentation

SpecificUnitEntersPolygon::SpecificUnitEntersPolygon int  unitID_ = -1  )  [inline]
 

Definition at line 361 of file gameevents.h.


Member Function Documentation

void SpecificUnitEntersPolygon::arm  )  [virtual]
 

Reimplemented from EventTrigger.

Definition at line 716 of file gameevents.cpp.

References cconnection_areaentered_specificunit, fieldCrossed, EventTrigger::gamemap, GameMap::getUnit(), FieldAddressing::operate(), and triggered().

void SpecificUnitEntersPolygon::fieldOperator const MapCoordinate mc  )  [protected, virtual]
 

Implements FieldAddressing.

Definition at line 662 of file gameevents.cpp.

References cconnection_areaentered_specificunit, tfield::connection, EventTrigger::gamemap, GameMap::getField(), GameMap::getUnit(), Vehicle::networkid, and tfield::vehicle.

ASCString SpecificUnitEntersPolygon::getDetailledName  )  const [virtual]
 

Implements EventTrigger.

Definition at line 698 of file gameevents.cpp.

References EventTrigger::gamemap, and GameMap::getUnit().

EventTrigger::State SpecificUnitEntersPolygon::getState int  player  )  [protected, virtual]
 

Implements EventTrigger.

Definition at line 652 of file gameevents.cpp.

References EventTrigger::fulfilled, FieldAddressing::operate(), and EventTrigger::unfulfilled.

ASCString SpecificUnitEntersPolygon::getTypeName  )  const [virtual]
 

Implements EventTrigger.

Definition at line 692 of file gameevents.cpp.

void SpecificUnitEntersPolygon::readData tnstream stream  )  [virtual]
 

Implements EventTrigger.

Definition at line 678 of file gameevents.cpp.

References tnstream::readInt(), FieldAddressing::readMapModificationData(), and versionTest().

void SpecificUnitEntersPolygon::setup  ) 
 

Reimplemented from FieldAddressing.

Definition at line 710 of file gameevents.cpp.

References selectunit(), and FieldAddressing::setup().

void SpecificUnitEntersPolygon::triggered  ) 
 

Definition at line 729 of file gameevents.cpp.

References eventReady(), and EventTrigger::isFulfilled().

Referenced by arm().

void SpecificUnitEntersPolygon::writeData tnstream stream  )  [virtual]
 

Implements EventTrigger.

Definition at line 685 of file gameevents.cpp.

References tnstream::writeInt(), and FieldAddressing::writeMapModificationData().


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