#include <src/Ext/Infantry/Body.h>
List of all members.
Public Member Functions |
| ExtData (const DWORD Canary, TT *const OwnerObject) |
virtual | ~ExtData () |
virtual size_t | Size () const |
virtual void | InvalidatePointer (void *ptr) |
bool | IsOccupant () |
| Determines whether this InfantryClass is currently an occupant inside a BuildingClass.
|
Constructor & Destructor Documentation
InfantryExt::ExtData::ExtData |
( |
const DWORD |
Canary, |
|
|
TT *const |
OwnerObject |
|
) |
| [inline] |
virtual InfantryExt::ExtData::~ExtData |
( |
| ) |
[inline, virtual] |
Member Function Documentation
virtual void InfantryExt::ExtData::InvalidatePointer |
( |
void * |
ptr | ) |
[inline, virtual] |
bool InfantryExt::ExtData::IsOccupant |
( |
| ) |
|
Determines whether this InfantryClass is currently an occupant inside a BuildingClass.
{
InfantryClass* thisTrooper = this->AttachedToObject;
if(BuildingClass* buildingBelow = thisTrooper->GetCell()->GetBuilding()) {
return (buildingBelow->Occupants.FindItemIndex(&thisTrooper) != -1);
} else {
return false;
}
}
virtual size_t InfantryExt::ExtData::Size |
( |
| ) |
const [inline, virtual] |
The documentation for this class was generated from the following files: