#include <OpenContain.h>
Inherits UpdateModule, ContainModuleInterface, CollideModuleInterface, DieModuleInterface, DamageModuleInterface, and ExitInterface.
Inherited by CaveContain, GarrisonContain, HealContain, MobNexusContain, ParachuteContain, TransportContain, and TunnelContain.
Public Member Functions | |
| OpenContain (Thing *thing, const ModuleData *moduleData) | |
| virtual ContainModuleInterface * | getContain () |
| virtual CollideModuleInterface * | getCollide () |
| virtual DieModuleInterface * | getDie () |
| virtual DamageModuleInterface * | getDamage () |
| virtual void | onDie (const DamageInfo *damageInfo) |
| the die callback | |
| virtual void | onDelete (void) |
| Last possible moment cleanup. | |
| virtual void | onCapture (Player *oldOwner, Player *newOwner) |
| virtual void | onCollide (Object *other, const Coord3D *loc, const Coord3D *normal) |
| virtual Bool | wouldLikeToCollideWith (const Object *other) const |
| virtual Bool | isCarBombCrateCollide () const |
| virtual Bool | isHijackedVehicleCrateCollide () const |
| virtual Bool | isRailroad () const |
| virtual Bool | isSalvageCrateCollide () const |
| virtual Bool | isSabotageBuildingCrateCollide () const |
| virtual UpdateSleepTime | update () |
| called once per frame | |
| virtual OpenContain * | asOpenContain () |
| treat as open container | |
| virtual void | onDamage (DamageInfo *damageInfo) |
| damage callback | |
| virtual void | onHealing (DamageInfo *damageInfo) |
| damage callback | |
| virtual void | onBodyDamageStateChange (const DamageInfo *damageInfo, BodyDamageType oldState, BodyDamageType newState) |
| healing callback | |
| virtual void | containReactToTransformChange () |
| state change callback | |
| virtual Bool | calcBestGarrisonPosition (Coord3D *sourcePos, const Coord3D *targetPos) |
| virtual Bool | attemptBestFirePointPosition (Object *source, Weapon *weapon, Object *victim) |
| virtual Bool | attemptBestFirePointPosition (Object *source, Weapon *weapon, const Coord3D *targetPos) |
| virtual void | clientVisibleContainedFlashAsSelected () |
| virtual const Player * | getApparentControllingPlayer (const Player *observingPlayer) const |
| virtual void | recalcApparentControllingPlayer () |
| virtual void | onContaining (Object *obj, Bool wasSelected) |
| object now contains 'obj' | |
| virtual void | onRemoving (Object *obj) |
| object no longer contains 'obj' | |
| virtual void | onSelling () |
| Container is being sold. Open responds by kicking people out. | |
| virtual void | orderAllPassengersToExit (CommandSourceType commandSource, Bool instantly) |
| All of the smarts of exiting are in the passenger's AIExit. removeAllFrommContain is a last ditch system call, this is the game Evacuate. | |
| virtual void | orderAllPassengersToIdle (CommandSourceType commandSource) |
| Just like it sounds. | |
| virtual void | orderAllPassengersToHackInternet (CommandSourceType) |
| Just like it sounds. | |
| virtual void | markAllPassengersDetected () |
| Cool game stuff got added to the system calls since this layer didn't exist, so this regains that functionality. | |
| virtual Bool | isValidContainerFor (const Object *obj, Bool checkCapacity) const |
| virtual void | addToContain (Object *obj) |
| add 'obj' to contain list | |
| virtual void | addToContainList (Object *obj) |
| The part of AddToContain that inheritors can override (Can't do whole thing because of all the private stuff involved) | |
| virtual void | removeFromContain (Object *obj, Bool exposeStealthUnits=FALSE) |
| remove 'obj' from contain list | |
| virtual void | removeAllContained (Bool exposeStealthUnits=FALSE) |
| remove all objects on contain list | |
| virtual void | killAllContained (void) |
| kill all objects on contain list | |
| virtual void | harmAndForceExitAllContained (DamageInfo *info) |
| virtual Bool | isEnclosingContainerFor (const Object *obj) const |
| Does this type of Contain Visibly enclose its contents? | |
| virtual Bool | isPassengerAllowedToFire (ObjectID id=INVALID_ID) const |
| Hey, can I shoot out of this container? | |
| virtual void | setPassengerAllowedToFire (Bool permission=TRUE) |
| Hey, can I shoot out of this container? | |
| virtual void | setOverrideDestination (const Coord3D *) |
| Instead of falling peacefully towards a clear spot, I will now aim here. | |
| virtual Bool | isDisplayedOnControlBar () const |
| Does this container display its contents on the ControlBar? | |
| virtual Int | getExtraSlotsInUse (void) |
| virtual Bool | isKickOutOnCapture () |
| By default, yes, all contain modules kick passengers out on capture. | |
| virtual void | iterateContained (ContainIterateFunc func, void *userData, Bool reverse) |
| virtual UnsignedInt | getContainCount () const |
| contained count | |
| virtual const ContainedItemsList * | getContainedItemsList () const |
| virtual const Object * | friend_getRider () const |
| Damn. The draw order dependency bug for riders means that our draw module needs to cheat to get around it. | |
| virtual Real | getContainedItemsMass () const |
| virtual UnsignedInt | getStealthUnitsContained () const |
| virtual PlayerMaskType | getPlayerWhoEntered (void) const |
| virtual Int | getContainMax () const |
| The max needs to be virtual, but only two inheritors care. -1 means "I don't care". | |
| virtual Bool | isExitBusy () const |
| Contain style exiters are getting the ability to space out exits, so ask this before reserveDoor as a kind of no-commitment check. | |
| virtual ExitDoorType | reserveDoorForExit (const ThingTemplate *objType, Object *specificObject) |
| All types can answer if they are free to exit or not, and you can ask about a specific guy or just exit anything in general. | |
| virtual void | exitObjectViaDoor (Object *newObj, ExitDoorType exitDoor) |
| virtual void | exitObjectInAHurry (Object *newObj) |
| virtual void | unreserveDoorForExit (ExitDoorType exitDoor) |
| if you get permission to exit, but then don't/can't call exitObjectViaDoor, you should call this to "give up" your permission | |
| virtual void | exitObjectByBudding (Object *newObj, Object *budHost) |
| puts new spawn on top of an existing one | |
| virtual void | setRallyPoint (const Coord3D *pos) |
| define a "rally point" for units to move towards | |
| virtual const Coord3D * | getRallyPoint (void) const |
| define a "rally point" for units to move towards | |
| virtual Bool | getExitPosition (Coord3D &exitPosition) const |
| virtual Bool | getNaturalRallyPoint (Coord3D &rallyPoint, Bool offset=TRUE) const |
| access to the "Door" position of the production object | |
| virtual ExitInterface * | getContainExitInterface () |
| virtual Bool | isGarrisonable () const |
| can this unit be Garrisoned? (ick) | |
| virtual Bool | isBustable () const |
| can this container get busted by a bunkerbuster | |
| virtual Bool | isHealContain () const |
| true when container only contains units while healing (not a transport!) | |
| virtual Bool | isTunnelContain () const |
| virtual Bool | isRiderChangeContain () const |
| virtual Bool | isSpecialZeroSlotContainer () const |
| virtual Bool | isImmuneToClearBuildingAttacks () const |
| virtual Bool | isSpecialOverlordStyleContainer () const |
| virtual Bool | isAnyRiderAttacking (void) const |
| virtual void | onObjectWantsToEnterOrExit (Object *obj, ObjectEnterExitType wants) |
| virtual Bool | hasObjectsWantingToEnterOrExit () const |
| virtual void | processDamageToContained (Real percentDamage) |
| Do our % damage to units now. | |
| virtual Bool | isWeaponBonusPassedToPassengers () const |
| virtual WeaponBonusConditionFlags | getWeaponBonusPassedToPassengers () const |
| virtual void | enableLoadSounds (Bool enable) |
| Real | getDamagePercentageToUnits (void) |
| virtual Object * | getClosestRider (const Coord3D *pos) |
| virtual void | setEvacDisposition (EvacDisposition disp) |
Public Member Functions inherited from UpdateModule | |
| UpdateModule (Thing *thing, const ModuleData *moduleData) | |
| virtual UpdateModuleInterface * | getUpdate () |
| DisabledMaskType | getDisabledTypesToProcess () const |
| UPDATEMODULE_FRIEND_DECLARATOR UnsignedInt | friend_getPriority () const |
| UPDATEMODULE_FRIEND_DECLARATOR UnsignedInt | friend_getNextCallFrame () const |
| UPDATEMODULE_FRIEND_DECLARATOR SleepyUpdatePhase | friend_getNextCallPhase () const |
| UPDATEMODULE_FRIEND_DECLARATOR void | friend_setNextCallFrame (UnsignedInt frame) |
| UPDATEMODULE_FRIEND_DECLARATOR Int | friend_getIndexInLogic () const |
| UPDATEMODULE_FRIEND_DECLARATOR void | friend_setIndexInLogic (Int i) |
| UPDATEMODULE_FRIEND_DECLARATOR const Object * | friend_getObject () const |
Public Member Functions inherited from BehaviorModule | |
| BehaviorModule (Thing *thing, const ModuleData *moduleData) | |
| virtual BodyModuleInterface * | getBody () |
| virtual CreateModuleInterface * | getCreate () |
| virtual DestroyModuleInterface * | getDestroy () |
| virtual SpecialPowerModuleInterface * | getSpecialPower () |
| virtual UpgradeModuleInterface * | getUpgrade () |
| virtual StealthUpdate * | getStealth () |
| virtual SpyVisionUpdate * | getSpyVisionUpdate () |
| virtual ParkingPlaceBehaviorInterface * | getParkingPlaceBehaviorInterface () |
| virtual RebuildHoleBehaviorInterface * | getRebuildHoleBehaviorInterface () |
| virtual BridgeBehaviorInterface * | getBridgeBehaviorInterface () |
| virtual BridgeTowerBehaviorInterface * | getBridgeTowerBehaviorInterface () |
| virtual BridgeScaffoldBehaviorInterface * | getBridgeScaffoldBehaviorInterface () |
| virtual OverchargeBehaviorInterface * | getOverchargeBehaviorInterface () |
| virtual TransportPassengerInterface * | getTransportPassengerInterface () |
| virtual CaveInterface * | getCaveInterface () |
| virtual LandMineInterface * | getLandMineInterface () |
| virtual DieModuleInterface * | getEjectPilotDieInterface () |
| virtual ProjectileUpdateInterface * | getProjectileUpdateInterface () |
| virtual AIUpdateInterface * | getAIUpdateInterface () |
| virtual ExitInterface * | getUpdateExitInterface () |
| virtual DockUpdateInterface * | getDockUpdateInterface () |
| virtual RailedTransportDockUpdateInterface * | getRailedTransportDockUpdateInterface (void) |
| virtual SlowDeathBehaviorInterface * | getSlowDeathBehaviorInterface () |
| virtual SpecialPowerUpdateInterface * | getSpecialPowerUpdateInterface () |
| virtual SlavedUpdateInterface * | getSlavedUpdateInterface () |
| virtual ProductionUpdateInterface * | getProductionUpdateInterface () |
| virtual HordeUpdateInterface * | getHordeUpdateInterface () |
| virtual PowerPlantUpdateInterface * | getPowerPlantUpdateInterface () |
| virtual SpawnBehaviorInterface * | getSpawnBehaviorInterface () |
| virtual CountermeasuresBehaviorInterface * | getCountermeasuresBehaviorInterface () |
| virtual const CountermeasuresBehaviorInterface * | getCountermeasuresBehaviorInterface () const |
Public Member Functions inherited from ObjectModule | |
| ObjectModule (Thing *thing, const ModuleData *moduleData) | |
| < this abstract class needs memory pool hooks | |
| virtual void | onDisabledEdge (Bool nowDisabled) |
Public Member Functions inherited from Module | |
| Module (const ModuleData *moduleData) | |
| < this abstract class needs memory pool hooks | |
| virtual NameKeyType | getModuleNameKey () const =0 |
| NameKeyType | getModuleTagNameKey () const |
| virtual void | onObjectCreated () |
| virtual void | onDrawableBoundToObject () |
| virtual void | preloadAssets (TimeOfDay timeOfDay) |
| preload any assets we might have for this time of day | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Public Member Functions inherited from ContainModuleInterface | |
| virtual Bool | getContainerPipsToShow (Int &numTotal, Int &numFull) |
Public Member Functions inherited from ExitInterface | |
| virtual Bool | useSpawnRallyPoint (void) const |
Static Public Member Functions | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from UpdateModule | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from BehaviorModule | |
| static Int | getInterfaceMask () |
| static ModuleType | getModuleType () |
Static Public Member Functions inherited from Module | |
| static ModuleData * | friend_newModuleData (INI *ini) |
Protected Member Functions | |
| virtual void | monitorConditionChanges (void) |
| check to see if we need to update our occupant postions from a model change or anything else | |
| virtual void | putObjAtNextFirePoint (Object *obj) |
| place object at position of the next fire point to use | |
| virtual void | redeployOccupants (void) |
| redeploy any objects at firepoints due to a model condition change | |
| const ContainedItemsList & | getContainList () const |
| void | scatterToNearbyPosition (Object *obj) |
| void | removeFromContainViaIterator (ContainedItemsList::iterator it, Bool exposeStealthUnits=FALSE) |
| remove item from contain list | |
| void | removeFromPassengerViaIterator (ContainedItemsList::iterator it) |
| remove item from passenger list | |
| virtual void | doLoadSound () |
| virtual void | doUnloadSound () |
| virtual void | positionContainedObjectsRelativeToContainer () |
| virtual void | addOrRemoveObjFromWorld (Object *obj, Bool add) |
| virtual void | killRidersWhoAreNotFreeToExit () |
| void | pruneDeadWanters () |
Protected Member Functions inherited from UpdateModule | |
| void | setWakeFrame (Object *obj, UpdateSleepTime wakeDelay) |
| UpdateSleepTime | getWakeFrame () const |
| virtual SleepyUpdatePhase | getUpdatePhase () const |
| UpdateSleepTime | frameToSleepTime (UnsignedInt frame1, UnsignedInt frame2=FOREVER, UnsignedInt frame3=FOREVER, UnsignedInt frame4=FOREVER) |
Protected Member Functions inherited from BehaviorModule | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Member Functions inherited from ObjectModule | |
| Object * | getObject () |
| const Object * | getObject () const |
Protected Member Functions inherited from Module | |
| const ModuleData * | getModuleData () const |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Protected Attributes | |
| ContainedItemsList | m_containList |
| the list of contained objects | |
| UnsignedInt | m_containListSize |
| size of contained list | |
An open container can actually contain other objects
Definition at line 83 of file OpenContain.h.
| OpenContain::OpenContain | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 126 of file OpenContain.cpp.
Definition at line 223 of file OpenContain.cpp.
|
virtual |
add 'obj' to contain list
Add 'rider' to the m_containList of objects in this module. This will trigger an onContaining event for the object that this module is a part of and an onContainedBy event for the object being contained
Implements ContainModuleInterface.
Reimplemented in HelixContain, and OverlordContain.
Definition at line 287 of file OpenContain.cpp.
|
virtual |
The part of AddToContain that inheritors can override (Can't do whole thing because of all the private stuff involved)
Implements ContainModuleInterface.
Reimplemented in CaveContain, HelixContain, OverlordContain, and TunnelContain.
Definition at line 367 of file OpenContain.cpp.
|
inlinevirtual |
treat as open container
Implements ContainModuleInterface.
Reimplemented in CaveContain, HelixContain, OverlordContain, and TunnelContain.
Definition at line 122 of file OpenContain.h.
|
inlinevirtual |
if my object gets selected, then my visible passengers should, too this gets called from
Implements ContainModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 137 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 136 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 135 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in HelixContain, and OverlordContain.
Definition at line 141 of file OpenContain.h.
|
virtual |
state change callback
Implements ContainModuleInterface.
Reimplemented in ParachuteContain.
Definition at line 192 of file OpenContain.cpp.
|
protectedvirtual |
Definition at line 498 of file OpenContain.cpp.
|
protectedvirtual |
Definition at line 522 of file OpenContain.cpp.
|
inlinevirtual |
Implements ContainModuleInterface.
Definition at line 228 of file OpenContain.h.
puts new spawn on top of an existing one
Implements ExitInterface.
Reimplemented in GarrisonContain, and RailedTransportContain.
Definition at line 193 of file OpenContain.h.
|
virtual |
This call is used to evacuate units from a tunnel network via a persistent state (guard tunnel networ). The main difference between this and exitObjectViaDoor is that this exit doesn't change the current ai state, so the guard state doesn't get blown away. jba.
<
Reimplemented from ExitInterface.
Definition at line 1060 of file OpenContain.cpp.
|
virtual |
This new call is going to replace all game callings of removeFromContain. Consider rFC a 'system' call, while this is a 'game' call. rFC will pull from the contained list and just plop the guy in the world, this function will then override that location with cool game stuff.
Exit and Evacuate can fail, removeAllContain and removeFromContain cannot.
<
<
Implements ExitInterface.
Reimplemented in GarrisonContain, and RailedTransportContain.
Definition at line 939 of file OpenContain.cpp.
|
inlinevirtual |
Damn. The draw order dependency bug for riders means that our draw module needs to cheat to get around it.
Implements ContainModuleInterface.
Reimplemented in HelixContain, OverlordContain, and RiderChangeContain.
Definition at line 177 of file OpenContain.h.
|
inlinevirtual |
return the player that appears to control this unit, given an observing player. if null, use getObject()->getControllingPlayer() instead.
Implements ContainModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 143 of file OpenContain.h.
Implements ContainModuleInterface.
Definition at line 586 of file OpenContain.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 100 of file OpenContain.h.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 99 of file OpenContain.h.
|
inlinevirtual |
contained count
Implements ContainModuleInterface.
Reimplemented in CaveContain, OverlordContain, and TunnelContain.
Definition at line 175 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in CaveContain, OverlordContain, and TunnelContain.
Definition at line 176 of file OpenContain.h.
|
virtual |
Implements ContainModuleInterface.
Definition at line 767 of file OpenContain.cpp.
|
inlinevirtual |
Implements ContainModuleInterface.
Definition at line 200 of file OpenContain.h.
|
inlineprotected |
Definition at line 240 of file OpenContain.h.
|
virtual |
The max needs to be virtual, but only two inheritors care. -1 means "I don't care".
Implements ContainModuleInterface.
Reimplemented in CaveContain, MobNexusContain, OverlordContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 164 of file OpenContain.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 102 of file OpenContain.h.
| Real OpenContain::getDamagePercentageToUnits | ( | void | ) |
Definition at line 1490 of file OpenContain.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 101 of file OpenContain.h.
Reimplemented from ExitInterface.
Definition at line 197 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in MobNexusContain, RiderChangeContain, and TransportContain.
Definition at line 170 of file OpenContain.h.
|
inlinestatic |
Definition at line 103 of file OpenContain.h.
access to the "Door" position of the production object
get the natural "rally point" for units to move towards
Reimplemented from ExitInterface.
Definition at line 1525 of file OpenContain.cpp.
|
inlinevirtual |
Implements ContainModuleInterface.
Definition at line 181 of file OpenContain.h.
|
virtual |
define a "rally point" for units to move towards
Implements ExitInterface.
Definition at line 1516 of file OpenContain.cpp.
|
inlinevirtual |
Implements ContainModuleInterface.
Definition at line 179 of file OpenContain.h.
|
virtual |
Implements ContainModuleInterface.
Definition at line 1483 of file OpenContain.cpp.
|
virtual |
Force all contained objects in the contained list to exit, and kick them in the pants on the way out
Implements ContainModuleInterface.
Reimplemented in TunnelContain.
Definition at line 467 of file OpenContain.cpp.
|
virtual |
Implements ContainModuleInterface.
Definition at line 1502 of file OpenContain.cpp.
|
virtual |
if my object gets selected, then my visible passengers should, too this gets called from
Implements ContainModuleInterface.
Definition at line 1563 of file OpenContain.cpp.
|
inlinevirtual |
can this container get busted by a bunkerbuster
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, and TunnelContain.
Definition at line 203 of file OpenContain.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 112 of file OpenContain.h.
|
inlinevirtual |
Does this container display its contents on the ControlBar?
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, OverlordContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 169 of file OpenContain.h.
Does this type of Contain Visibly enclose its contents?
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, HelixContain, OverlordContain, and ParachuteContain.
Definition at line 1496 of file OpenContain.cpp.
|
inlinevirtual |
Contain style exiters are getting the ability to space out exits, so ask this before reserveDoor as a kind of no-commitment check.
Implements ExitInterface.
Reimplemented in RiderChangeContain, and TransportContain.
Definition at line 186 of file OpenContain.h.
|
inlinevirtual |
can this unit be Garrisoned? (ick)
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, OverlordContain, and TunnelContain.
Definition at line 202 of file OpenContain.h.
|
inlinevirtual |
true when container only contains units while healing (not a transport!)
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, HealContain, HelixContain, OverlordContain, and TunnelContain.
Definition at line 204 of file OpenContain.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 113 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, HelixContain, OverlordContain, and TunnelContain.
Definition at line 208 of file OpenContain.h.
|
inlinevirtual |
By default, yes, all contain modules kick passengers out on capture.
Implements ContainModuleInterface.
Reimplemented in CaveContain, OverlordContain, and TunnelContain.
Definition at line 171 of file OpenContain.h.
|
virtual |
Hey, can I shoot out of this container?
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, HelixContain, OverlordContain, and TransportContain.
Definition at line 1151 of file OpenContain.cpp.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 114 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in RiderChangeContain, and TransportContain.
Definition at line 206 of file OpenContain.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 116 of file OpenContain.h.
|
inlinevirtual |
Implements CollideModuleInterface.
Definition at line 115 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, HelixContain, OverlordContain, TransportContain, and TunnelContain.
Definition at line 209 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in ParachuteContain.
Definition at line 207 of file OpenContain.h.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, HealContain, HelixContain, OverlordContain, and TunnelContain.
Definition at line 205 of file OpenContain.h.
Check to see if we are a valid container for 'obj'
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, HelixContain, MobNexusContain, OverlordContain, ParachuteContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 880 of file OpenContain.cpp.
|
virtual |
Implements ContainModuleInterface.
Definition at line 1477 of file OpenContain.cpp.
|
virtual |
Iterate the contained list and call the callback on each of the objects
Implements ContainModuleInterface.
Reimplemented in CaveContain, OverlordContain, and TunnelContain.
Definition at line 546 of file OpenContain.cpp.
|
virtual |
kill all objects on contain list
Kill all contained objects in the contained list
Implements ContainModuleInterface.
Reimplemented in OverlordContain, and TunnelContain.
Definition at line 435 of file OpenContain.cpp.
|
inlineprotectedvirtual |
Reimplemented in RiderChangeContain, and TransportContain.
Definition at line 253 of file OpenContain.h.
|
virtual |
Cool game stuff got added to the system calls since this layer didn't exist, so this regains that functionality.
Implements ContainModuleInterface.
Definition at line 1346 of file OpenContain.cpp.
|
protectedvirtual |
check to see if we need to update our occupant postions from a model change or anything else
Check to see if our internal knowledge of the artwork matches the current state of the model being displayed. When changes occur (from changing the time of day or going to a new damage state, we will want to redeploy all our occupants to be at new fire points that are reflected in the new artwork
Definition at line 1172 of file OpenContain.cpp.
|
inlinevirtual |
healing callback
Implements DamageModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 127 of file OpenContain.h.
Reimplemented from ObjectModule.
Reimplemented in HelixContain, OverlordContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 107 of file OpenContain.h.
Implements CollideModuleInterface.
Reimplemented in ParachuteContain.
Definition at line 782 of file OpenContain.cpp.
object now contains 'obj'
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, HelixContain, InternetHackContain, MobNexusContain, OverlordContain, ParachuteContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 739 of file OpenContain.cpp.
|
inlinevirtual |
damage callback
Implements DamageModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 125 of file OpenContain.h.
|
virtual |
Last possible moment cleanup.
Reimplemented from Module.
Reimplemented in HelixContain, OverlordContain, and TunnelContain.
Definition at line 843 of file OpenContain.cpp.
|
virtual |
the die callback
The die callback.
Implements DieModuleInterface.
Reimplemented in CaveContain, HelixContain, OverlordContain, ParachuteContain, and TunnelContain.
Definition at line 857 of file OpenContain.cpp.
|
inlinevirtual |
|
virtual |
this is used for containers that must do something to allow people to enter or exit... eg, land (for Chinook), open door (whatever)... it's called with wants=WANTS_TO_ENTER when something is in the enter state, and wants=ENTS_NOTHING when the unit has either entered, or given up...
this is used for containers that must do something to allow people to enter or exit... eg, land (for Chinook), open door (whatever)... it's called with wants=WANTS_TO_ENTER when something is in the enter state, and wants=WANTS_NOTHING when the unit has either entered, or given up...
Implements ContainModuleInterface.
Definition at line 1307 of file OpenContain.cpp.
|
virtual |
object no longer contains 'obj'
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, HelixContain, MobNexusContain, OverlordContain, ParachuteContain, RailedTransportContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 751 of file OpenContain.cpp.
|
virtual |
Container is being sold. Open responds by kicking people out.
Implements ContainModuleInterface.
Reimplemented in GarrisonContain, and TunnelContain.
Definition at line 1370 of file OpenContain.cpp.
|
virtual |
All of the smarts of exiting are in the passenger's AIExit. removeAllFrommContain is a last ditch system call, this is the game Evacuate.
Implements ContainModuleInterface.
Definition at line 1377 of file OpenContain.cpp.
|
virtual |
Just like it sounds.
Implements ContainModuleInterface.
Definition at line 1420 of file OpenContain.cpp.
|
virtual |
Just like it sounds.
Implements ContainModuleInterface.
Definition at line 1405 of file OpenContain.cpp.
|
inlineprotectedvirtual |
Reimplemented in ParachuteContain.
Definition at line 248 of file OpenContain.h.
|
virtual |
Do our % damage to units now.
Implements ContainModuleInterface.
Definition at line 1441 of file OpenContain.cpp.
|
protected |
Definition at line 1326 of file OpenContain.cpp.
|
protectedvirtual |
place object at position of the next fire point to use
Place the object at the 3D position of the next fire point to use
Definition at line 1227 of file OpenContain.cpp.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in CaveContain, and GarrisonContain.
Definition at line 144 of file OpenContain.h.
|
protectedvirtual |
redeploy any objects at firepoints due to a model condition change
Reimplemented in GarrisonContain, and HelixContain.
Definition at line 1198 of file OpenContain.cpp.
remove all objects on contain list
Remove all contained objects from the contained list
Implements ContainModuleInterface.
Reimplemented in CaveContain, GarrisonContain, OverlordContain, and TunnelContain.
Definition at line 418 of file OpenContain.cpp.
remove 'obj' from contain list
Remove 'rider' from the m_containList of objects in this module. This will trigger an onRemoving event for the object that this module is a part of and an onRemovedFrom event for the object being removed
Implements ContainModuleInterface.
Reimplemented in CaveContain, HelixContain, OverlordContain, and TunnelContain.
Definition at line 382 of file OpenContain.cpp.
|
protected |
remove item from contain list
Remove an object from the containment of this module given the item to remove and trigger the proper callback events
place the object in the world at position of the container m_object
Definition at line 630 of file OpenContain.cpp.
|
protected |
remove item from passenger list
|
inlinevirtual |
All types can answer if they are free to exit or not, and you can ask about a specific guy or just exit anything in general.
Implements ExitInterface.
Reimplemented in MobNexusContain, RiderChangeContain, and TransportContain.
Definition at line 187 of file OpenContain.h.
|
protected |
Definition at line 688 of file OpenContain.cpp.
|
inlinevirtual |
Implements ContainModuleInterface.
Reimplemented in GarrisonContain.
Definition at line 233 of file OpenContain.h.
|
inlinevirtual |
Instead of falling peacefully towards a clear spot, I will now aim here.
Implements ContainModuleInterface.
Reimplemented in ParachuteContain.
Definition at line 168 of file OpenContain.h.
Hey, can I shoot out of this container?
Implements ContainModuleInterface.
Definition at line 166 of file OpenContain.h.
|
virtual |
define a "rally point" for units to move towards
Implements ExitInterface.
Definition at line 1509 of file OpenContain.cpp.
|
inlinevirtual |
if you get permission to exit, but then don't/can't call exitObjectViaDoor, you should call this to "give up" your permission
Implements ExitInterface.
Reimplemented in MobNexusContain, RiderChangeContain, and TransportContain.
Definition at line 192 of file OpenContain.h.
|
virtual |
called once per frame
Implements UpdateModule.
Reimplemented in GarrisonContain, HealContain, HelixContain, MobNexusContain, ParachuteContain, RiderChangeContain, TransportContain, and TunnelContain.
Definition at line 200 of file OpenContain.cpp.
Implements CollideModuleInterface.
Definition at line 111 of file OpenContain.h.
|
protected |
the list of contained objects
Definition at line 257 of file OpenContain.h.
|
protected |
size of contained list
Definition at line 258 of file OpenContain.h.