|
Tiberian Technologies Scripts Reference Revision: 9000
|
dp88 Building Scripts - Base Class More...
#include <dp88_buildingScripts.h>
Protected Member Functions | |
| GameObject * | RegisterWithParent (GameObject *obj, const char *preset_name, int type) |
| void | Custom (GameObject *obj, int type, int param, GameObject *sender) |
| virtual void | OnCustom (GameObject *obj, int type, int param, GameObject *sender) |
| virtual void | OnBuildingOffline (GameObject *obj) |
| virtual void | OnBuildingOnline (GameObject *obj) |
| virtual void | OnBuildingCaptured (GameObject *obj, int team) |
| virtual void | OnBuildingDestroyed (GameObject *obj) |
Protected Attributes | |
| int | m_parentId |
This is the base class for all scripts in the dp88_BuildingScripts set except the controller. It handles location of the parent building (where necessary) and parsing all of the custom messages from the parent building.
|
protected |
Handles custom messages from the parent building, should not be overridden by derived classes, which should instead override the new OnCustom() stub function if they need to do their own custom processing
|
inlineprotectedvirtual |
Event function called when the building has been captured by a team or become neutral
Reimplemented in dp88_buildingScripts_capturePoint.
|
inlineprotectedvirtual |
Event function called when the building has been destroyed
Reimplemented in dp88_buildingScripts_component, dp88_buildingScripts_majorWeakpoint, dp88_buildingScripts_minorWeakpoint, dp88_buildingScripts_functionSpawnZone, and dp88_buildingScripts_capturePoint.
|
inlineprotectedvirtual |
Event function called when the building enters the "offline" state
Reimplemented in dp88_buildingScripts_functionProduceInfantry, dp88_buildingScripts_functionProduceVehicles, dp88_buildingScripts_functionProduceAircraft, dp88_buildingScripts_functionProduceNavalUnits, dp88_buildingScripts_functionProvidePower, dp88_buildingScripts_functionProvideRadar, dp88_buildingScripts_functionProvideHarvester, and dp88_buildingScripts_functionSpawnZone.
|
inlineprotectedvirtual |
Event function called when the building enters the "online" state
Reimplemented in dp88_buildingScripts_functionProduceInfantry, dp88_buildingScripts_functionProduceVehicles, dp88_buildingScripts_functionProduceAircraft, dp88_buildingScripts_functionProduceNavalUnits, dp88_buildingScripts_functionProvidePower, dp88_buildingScripts_functionProvideRadar, dp88_buildingScripts_functionProvideHarvester, and dp88_buildingScripts_functionSpawnZone.
|
inlineprotectedvirtual |
This function is called by Custom() for any custom it has not handled itself
|
protected |
This function should be called in the Created() function of any derived script which is placed on an object other than the one with the dp88_buildingScripts_controller script attached. If no parent is found this will call Destroy_Script() and return false
|
protected |
ID of the building controller we belong to