#include <gameevents.h>
Inheritance diagram for SpecificUnitEntersPolygon:

Public Member Functions | |
| SpecificUnitEntersPolygon (int unitID_=-1) | |
| virtual void | readData (tnstream &stream) |
| virtual void | writeData (tnstream &stream) |
| void | setup () |
| void | arm () |
| void | triggered (const Context &context) |
| ASCString | getTypeName () const |
| ASCString | getDetailledName () const |
Protected Member Functions | |
| virtual State | getState (int player) |
| void | fieldOperator (const MapCoordinate &mc) |
Definition at line 354 of file gameevents.h.
| SpecificUnitEntersPolygon::SpecificUnitEntersPolygon | ( | int | unitID_ = -1 |
) | [inline] |
Definition at line 361 of file gameevents.h.
| EventTrigger::State SpecificUnitEntersPolygon::getState | ( | int | player | ) | [protected, virtual] |
Implements EventTrigger.
Definition at line 630 of file gameevents.cpp.
References EventTrigger::fulfilled, FieldAddressing::operate(), and EventTrigger::unfulfilled.
| void SpecificUnitEntersPolygon::readData | ( | tnstream & | stream | ) | [virtual] |
Implements EventTrigger.
Definition at line 656 of file gameevents.cpp.
References tnstream::readInt(), FieldAddressing::readMapModificationData(), and versionTest().
| void SpecificUnitEntersPolygon::writeData | ( | tnstream & | stream | ) | [virtual] |
Implements EventTrigger.
Definition at line 663 of file gameevents.cpp.
References tnstream::writeInt(), and FieldAddressing::writeMapModificationData().
| void SpecificUnitEntersPolygon::setup | ( | ) |
Reimplemented from FieldAddressing.
Definition at line 688 of file gameevents.cpp.
References selectunit(), and FieldAddressing::setup().
| void SpecificUnitEntersPolygon::arm | ( | ) | [virtual] |
Reimplemented from EventTrigger.
Definition at line 694 of file gameevents.cpp.
References cconnection_areaentered_specificunit, Vehicle::connection, fieldCrossed, EventTrigger::gamemap, GameMap::getUnit(), FieldAddressing::operate(), and triggered().
| void SpecificUnitEntersPolygon::triggered | ( | const Context & | context | ) |
Definition at line 707 of file gameevents.cpp.
References eventReady(), EventTrigger::gamemap, and EventTrigger::isFulfilled().
Referenced by arm().
| ASCString SpecificUnitEntersPolygon::getTypeName | ( | ) | const [virtual] |
| ASCString SpecificUnitEntersPolygon::getDetailledName | ( | ) | const [virtual] |
Implements EventTrigger.
Definition at line 676 of file gameevents.cpp.
References EventTrigger::gamemap, Vehicle::getName(), and GameMap::getUnit().
| void SpecificUnitEntersPolygon::fieldOperator | ( | const MapCoordinate & | mc | ) | [protected, virtual] |
Implements FieldAddressing.
Definition at line 640 of file gameevents.cpp.
References cconnection_areaentered_specificunit, MapField::connection, EventTrigger::gamemap, GameMap::getField(), Vehicle::getPosition(), GameMap::getUnit(), MapField::getVehicle(), Vehicle::networkid, MapCoordinate::x, and MapCoordinate::y.
1.5.1