Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DGameLogic Class Reference

#include <W3DGameLogic.h>

Inherits GameLogic.

Protected Member Functions

virtual TerrainLogiccreateTerrainLogic (void)
 factory for TheTerrainLogic, called from init()
 
virtual GhostObjectManagercreateGhostObjectManager (void)
 
- Protected Member Functions inherited from GameLogic
virtual void crc (Xfer *xfer)
 
virtual void xfer (Xfer *xfer)
 
virtual void loadPostProcess (void)
 

Additional Inherited Members

- Public Member Functions inherited from GameLogic
 GameLogic (void)
 
virtual ~GameLogic ()
 
virtual void init (void)
 Initialize or re-initialize the instance.
 
virtual void reset (void)
 Reset the logic system.
 
virtual void update (void)
 update the world
 
void processCommandList (CommandList *list)
 process the command list
 
void prepareNewGame (Int gameMode, GameDifficulty diff, Int rankPoints)
 prepare for new game
 
void logicMessageDispatcher (GameMessage *msg, void *userData)
 Logic command list processing.
 
void registerObject (Object *obj)
 Given an object, register it with the GameLogic and give it a unique ID.
 
void addObjectToLookupTable (Object *obj)
 add object ID to hash lookup table
 
void removeObjectFromLookupTable (Object *obj)
 remove object ID from hash lookup table
 
void setWidth (Real width)
 Sets the width of the world.
 
Real getWidth (void)
 Returns the width of the world.
 
void setHeight (Real height)
 Sets the height of the world.
 
Real getHeight (void)
 Returns the height of the world.
 
Bool isInGameLogicUpdate (void) const
 
UnsignedInt getFrame (void)
 Returns the current simulation frame number.
 
UnsignedInt getCRC (Int mode=CRC_CACHED, AsciiString deepCRCFileName=AsciiString::TheEmptyString)
 Returns the CRC.
 
void setObjectIDCounter (ObjectID nextObjID)
 
ObjectID getObjectIDCounter (void)
 
void setBuildableStatusOverride (const ThingTemplate *tt, BuildableStatus bs)
 
Bool findBuildableStatusOverride (const ThingTemplate *tt, BuildableStatus &bs) const
 
void setControlBarOverride (const AsciiString &commandSetName, Int slot, ConstCommandButtonPtr commandButton)
 
Bool findControlBarOverride (const AsciiString &commandSetName, Int slot, ConstCommandButtonPtr &commandButton) const
 
Objectfriend_createObject (const ThingTemplate *thing, const ObjectStatusMaskType &objectStatusMask, Team *team)
 create an object given the thing template. (Only for use by ThingFactory.)
 
void destroyObject (Object *obj)
 Mark object as destroyed for later deletion.
 
ObjectfindObjectByID (ObjectID id)
 Given an ObjectID, return a pointer to the object.
 
ObjectgetFirstObject (void)
 Returns the "first" object in the world. When used with the object method "getNextObject()", all objects in the world can be iterated.
 
ObjectID allocateObjectID (void)
 Returns a new unique object id.
 
void startNewGame (Bool loadSaveGame)
 
void loadMapINI (AsciiString mapName)
 
void updateLoadProgress (Int progress)
 
void deleteLoadScreen (void)
 
void setLoadingMap (Bool loading)
 
void setLoadingSave (Bool loading)
 
void setClearingGameData (Bool clearing)
 
void setGameMode (Int mode)
 
Int getGameMode (void)
 
Bool isInGame (void)
 
Bool isInLanGame (void)
 
Bool isInSinglePlayerGame (void)
 
Bool isInSkirmishGame (void)
 
Bool isInReplayGame (void)
 
Bool isInInternetGame (void)
 
Bool isInShellGame (void)
 
Bool isInMultiplayerGame (void)
 
Bool isLoadingMap () const
 
Bool isLoadingSave () const
 
Bool isClearingGameData () const
 
void enableScoring (Bool score)
 
Bool isScoringEnabled () const
 
void setShowBehindBuildingMarkers (Bool b)
 
Bool getShowBehindBuildingMarkers () const
 
void setDrawIconUI (Bool b)
 
Bool getDrawIconUI () const
 
void setShowDynamicLOD (Bool b)
 
Bool getShowDynamicLOD () const
 
void setHulkMaxLifetimeOverride (Int b)
 
Int getHulkMaxLifetimeOverride () const
 
Bool isIntroMoviePlaying ()
 
void updateObjectsChangedTriggerAreas (void)
 
UnsignedInt getFrameObjectsChangedTriggerAreas (void)
 
void clearGameData (Bool showScoreScreen=TRUE)
 Clear the game data.
 
void closeWindows (void)
 
void sendObjectCreated (Object *obj)
 
void sendObjectDestroyed (Object *obj)
 
void bindObjectAndDrawable (Object *obj, Drawable *draw)
 
void setGamePaused (Bool paused, Bool pauseMusic=TRUE)
 
Bool isGamePaused (void)
 
Bool getInputEnabledMemory (void)
 
void processProgress (Int playerId, Int percentage)
 
void processProgressComplete (Int playerId)
 
Bool isProgressComplete (void)
 @TODO: Add check to account for timeouts
 
void timeOutGameStart (void)
 
void initTimeOutValues (void)
 
UnsignedInt getObjectCount (void)
 
Int getRankLevelLimit () const
 
void setRankLevelLimit (Int limit)
 
Int getRankPointsToAddAtGameStart () const
 
UnsignedShort getSuperweaponRestriction (void) const
 Get any optional limits on superweapons.
 
void setSuperweaponRestriction (void)
 
void selectObject (Object *obj, Bool createNewSelection, PlayerMaskType playerMask, Bool affectClient=FALSE)
 
void deselectObject (Object *obj, PlayerMaskType playerMask, Bool affectClient=FALSE)
 
void friend_awakenUpdateModule (Object *obj, UpdateModulePtr update, UnsignedInt whenToWakeUp)
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 
- Public Member Functions inherited from Snapshot
 Snapshot (void)
 
 ~Snapshot (void)
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

W3D specific functionality for game logic

Definition at line 56 of file W3DGameLogic.h.

Member Function Documentation

◆ createGhostObjectManager()

virtual GhostObjectManager * W3DGameLogic::createGhostObjectManager ( void )
inlineprotectedvirtual

Reimplemented from GameLogic.

Definition at line 65 of file W3DGameLogic.h.

◆ createTerrainLogic()

virtual TerrainLogic * W3DGameLogic::createTerrainLogic ( void )
inlineprotectedvirtual

factory for TheTerrainLogic, called from init()

Reimplemented from GameLogic.

Definition at line 64 of file W3DGameLogic.h.


The documentation for this class was generated from the following file: