#include <src/Misc/SWTypes/UnitDelivery.h>
List of all members.
Member Typedef Documentation
Constructor & Destructor Documentation
SW_UnitDelivery::SW_UnitDelivery |
( |
| ) |
[inline] |
virtual SW_UnitDelivery::~SW_UnitDelivery |
( |
| ) |
[inline, virtual] |
Member Function Documentation
virtual const char* SW_UnitDelivery::GetTypeString |
( |
| ) |
[inline, virtual] |
Reimplemented from NewSWType.
{ return "UnitDelivery"; }
void SW_UnitDelivery::Initialize |
( |
SWTypeExt::ExtData * |
pData, |
|
|
SuperWeaponTypeClass * |
pSW |
|
) |
| [virtual] |
bool SW_UnitDelivery::Launch |
( |
SuperClass * |
pThis, |
|
|
CellStruct * |
pCoords, |
|
|
byte |
IsPlayer |
|
) |
| [virtual] |
void SW_UnitDelivery::LoadFromINI |
( |
SWTypeExt::ExtData * |
pData, |
|
|
SuperWeaponTypeClass * |
pSW, |
|
|
CCINIClass * |
pINI |
|
) |
| [virtual] |
Reimplemented from NewSWType.
{
const char * section = pSW->ID;
if(!pINI->GetSection(section)) {
return;
}
if(pINI->ReadString(section, "Deliver.Types", "", Ares::readBuffer, Ares::readLength)) {
pData->SW_Deliverables.Clear();
for(char *cur = strtok(Ares::readBuffer, ","); cur && *cur; cur = strtok(NULL, ",")) {
TechnoTypeClass * Type = InfantryTypeClass::Find(cur);
if(!Type) {
Type = UnitTypeClass::Find(cur);
}
if(!Type) {
Type = AircraftTypeClass::Find(cur);
}
if(!Type) {
Type = BuildingTypeClass::Find(cur);
}
if(!Type) {
Debug::INIParseFailed(section, "Deliver.Types", cur, "Expected valid TechnoType ID.");
}
if(Type) {
pData->SW_Deliverables.AddItem(Type);
}
}
}
INI_EX exINI(pINI);
pData->SW_DeliverBuildups.Read(&exINI, section, "Deliver.Buildups");
}
void SW_UnitDelivery::newStateMachine |
( |
int |
Duration, |
|
|
CellStruct |
XY, |
|
|
SuperClass * |
pSuper |
|
) |
| [inline] |
The documentation for this class was generated from the following files: