Fission FSN
Loading...
Searching...
No Matches
gfCParkLevelComponent Class Reference

#include <gfCParkLevelComponent.h>

Inheritance diagram for gfCParkLevelComponent:

Public Member Functions

void levelCreate (const fsStr &pLevelName, fsBool pResume)
fsS32 dayRemainingMsGet () const
fsS32 dayIndexGet () const
fsBool finalDayGet () const
const gfCParkDaySimsimGet () const
gfCParkDaySimsimGet ()
void dayAdvance ()
void progressSave () const
void progressPersist ()
void slotPurchasedRecord (const fsStr &pSlotName, fsS32 pServiceTimeMs, fsS32 pMaxQueueLength, const fsStr &pBuildingImage, fsS32 pVisitorQuota=0, fsS32 pVisitorAppeal=0)
void staffHiredRecord (const fsStr &pStaffType, fsS32 pWage)
void decorationPlacedRecord (const fsStr &pImage, fsS32 pDrawWidth, fsS32 pFootprintColumns, fsS32 pFootprintRows, fsS32 pLocalX, fsS32 pLocalY, fsS32 pVisitorAppeal=0, fsS32 pVisitorComfort=0)
fsBool serviceBuildingPlace (fsNTileMap::fsCView *pView, const fsStr &pImage, const fsStr &pServiceType, fsS32 pServiceTimeMs, fsS32 pMaxQueueLength, fsS32 pVisitorQuota, fsS32 pVisitorAppeal, fsS32 pDrawWidth, fsS32 pFootprintColumns, fsS32 pFootprintRows, fsS32 pLocalX, fsS32 pLocalY)
fsBool runtimeSlotPositionGet (const fsStr &pSlotName, fsVec2d &pOut) const
fsBool runtimeSlotGetByIndex (fsS32 pIndex, fsStr &pNameOut, fsVec2d &pPositionOut) const
fsBool parkPlacementValid (fsNTileMap::fsCView *pView, fsS32 pLocalX, fsS32 pLocalY, fsS32 pFootprintColumns, fsS32 pFootprintRows) const
fsBool cellForestGet (fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
fsBool cellWalkableGet (fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
fsPoint cellFromLocal (fsNTileMap::fsCView *pView, const fsVec2d &pLocal) const
fsVec2d cellCentreLocal (fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
std::vector< fsPointpathFindCells (fsNTileMap::fsCView *pView, const fsPoint &pFrom, const fsPoint &pTo) const
fsPoint nearestWalkableCell (fsNTileMap::fsCView *pView, const fsPoint &pCell) const
fsPoint nearestReachableCell (fsNTileMap::fsCView *pView, const fsPoint &pFrom, const fsPoint &pDesired) const
fsS32 forestClearCostGet () const
fsBool forestClearAt (fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow)
fsS32 dailyWagesGet () const
fsS32 lastDayWagesGet () const
fsS32 parkReputationGet () const
fsBool repairArmedGet () const
void repairArmedSet (fsBool pArmed)
void staffDeployedRecord (const fsStr &pSlotName)
void staffRecalledRecord (const fsStr &pSlotName)
virtual ~gfCParkLevelComponent ()
Public Member Functions inherited from fsIMessageListenerComponent
 fsIMessageListenerComponent (fsCEntity *pParent)
 fsIMessageListenerComponent (fsCEntity *pParent, fsS32 pPriority)
virtual ~fsIMessageListenerComponent ()
Public Member Functions inherited from fsIComponent
template<typename TInterface>
std::vector< fsCEntity * > appSceneEntitiesWithComponentOfFamilyType () const
template<typename TInterface>
fsCEntityappSceneFirstEntityWithComponentOfFamilyType () const
fsCEntityappSceneEntityNamed (const fsStr &pName) const
void reset ()
void update (fsS32 pDeltaMs)
void render ()
void matrixApply ()
void postLoad ()
void deserialise ()
void serialise ()
void initialiseFromVariableTable (const fsCVariableTable &pVars)
void initialise ()
void finalise ()
fsCEntityparentGet () const
fsCEntitygrandparentGet () const
Public Member Functions inherited from fsIMessageListener
void listenersRegister ()
void listenersDeregister ()
void prioritySet (fsS32 pPriority)
fsBool messageProcess (const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam)
void inputSteal ()

Static Public Member Functions

static fsCEntitydecorationPresentationPlace (fsNTileMap::fsCView *pView, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pLocalX, fsS32 pLocalY)
static fsCEntityserviceBuildingPresentationPlace (fsNTileMap::fsCView *pView, const fsStr &pSlotName, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pLocalX, fsS32 pLocalY)
Static Public Member Functions inherited from fsIMessageListener
static fsBool lessThan (const fsIMessageListener *pLHS, const fsIMessageListener *pRHS)

Static Public Attributes

static const fsCUniqueId mTypeId
static const fsS32 mNumDays = 5

Protected Member Functions

void updateDo (fsS32 pDeltaMs) override
void listenersRegisterDo () override
void listenersDeregisterDo () override
fsBool messageProcessDo (const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
 gfCParkLevelComponent (fsCEntity *const pParent)
Protected Member Functions inherited from fsIComponent
virtual void resetDo ()
virtual void renderDo ()
virtual void matrixApplyDo ()
virtual void postLoadDo ()
virtual void deserialiseDo ()
virtual void serialiseDo ()
virtual void initialiseFromVariableTableDo (const fsCVariableTable &pVars)
virtual void initialiseDo ()
virtual void finaliseDo ()
virtual ~fsIComponent ()
 fsIComponent (fsCEntity *pParent)
Protected Member Functions inherited from fsIMessageListener
virtual void inputStealDo ()
 fsIMessageListener (fsS32 pPriority)
virtual ~fsIMessageListener ()

Static Protected Member Functions

static fsIComponent *const create (fsCEntity *const pParent)

Friends

class fsCComponentFactory

Additional Inherited Members

Public Types inherited from fsIMessageListener
enum  {
  ePRIORITY_NORMAL = 0 , ePRIORITY_DEBUG_WINDOW , ePRIORITY_SOFTWARE_CURSOR , ePRIORITY_TEXT_ENTRY ,
  ePRIORITY_DEBUG_MODAL , ePRIORITY_DEBUG_MODAL_BUTTON
}
Protected Attributes inherited from fsIMessageListener
fsS32 mPriority

Constructor & Destructor Documentation

◆ ~gfCParkLevelComponent()

gfCParkLevelComponent::~gfCParkLevelComponent ( )
virtual

◆ gfCParkLevelComponent()

gfCParkLevelComponent::gfCParkLevelComponent ( fsCEntity *const pParent)
protected

Member Function Documentation

◆ cellCentreLocal()

fsVec2d gfCParkLevelComponent::cellCentreLocal ( fsNTileMap::fsCView * pView,
fsS32 pCol,
fsS32 pRow ) const

◆ cellForestGet()

fsBool gfCParkLevelComponent::cellForestGet ( fsNTileMap::fsCView * pView,
fsS32 pCol,
fsS32 pRow ) const

◆ cellFromLocal()

fsPoint gfCParkLevelComponent::cellFromLocal ( fsNTileMap::fsCView * pView,
const fsVec2d & pLocal ) const

◆ cellWalkableGet()

fsBool gfCParkLevelComponent::cellWalkableGet ( fsNTileMap::fsCView * pView,
fsS32 pCol,
fsS32 pRow ) const

◆ create()

fsIComponent *const gfCParkLevelComponent::create ( fsCEntity *const pParent)
staticprotected

◆ dailyWagesGet()

fsS32 gfCParkLevelComponent::dailyWagesGet ( ) const

◆ dayAdvance()

void gfCParkLevelComponent::dayAdvance ( )

◆ dayIndexGet()

fsS32 gfCParkLevelComponent::dayIndexGet ( ) const
inline

◆ dayRemainingMsGet()

fsS32 gfCParkLevelComponent::dayRemainingMsGet ( ) const
inline

◆ decorationPlacedRecord()

void gfCParkLevelComponent::decorationPlacedRecord ( const fsStr & pImage,
fsS32 pDrawWidth,
fsS32 pFootprintColumns,
fsS32 pFootprintRows,
fsS32 pLocalX,
fsS32 pLocalY,
fsS32 pVisitorAppeal = 0,
fsS32 pVisitorComfort = 0 )

◆ decorationPresentationPlace()

fsCEntity * gfCParkLevelComponent::decorationPresentationPlace ( fsNTileMap::fsCView * pView,
const fsStr & pImage,
fsS32 pDrawWidth,
fsS32 pLocalX,
fsS32 pLocalY )
static

◆ finalDayGet()

fsBool gfCParkLevelComponent::finalDayGet ( ) const
inline

◆ forestClearAt()

fsBool gfCParkLevelComponent::forestClearAt ( fsNTileMap::fsCView * pView,
fsS32 pCol,
fsS32 pRow )

◆ forestClearCostGet()

fsS32 gfCParkLevelComponent::forestClearCostGet ( ) const

◆ lastDayWagesGet()

fsS32 gfCParkLevelComponent::lastDayWagesGet ( ) const
inline

◆ levelCreate()

void gfCParkLevelComponent::levelCreate ( const fsStr & pLevelName,
fsBool pResume )

◆ listenersDeregisterDo()

void gfCParkLevelComponent::listenersDeregisterDo ( )
overrideprotectedvirtual

Implements fsIMessageListener.

◆ listenersRegisterDo()

void gfCParkLevelComponent::listenersRegisterDo ( )
overrideprotectedvirtual

Implements fsIMessageListener.

◆ messageProcessDo()

fsBool gfCParkLevelComponent::messageProcessDo ( const fsCUniqueId & pMessageType,
const fsIMessageDispatcher::sMessageParameters & pParam )
overrideprotectedvirtual

Implements fsIMessageListener.

◆ nearestReachableCell()

fsPoint gfCParkLevelComponent::nearestReachableCell ( fsNTileMap::fsCView * pView,
const fsPoint & pFrom,
const fsPoint & pDesired ) const

◆ nearestWalkableCell()

fsPoint gfCParkLevelComponent::nearestWalkableCell ( fsNTileMap::fsCView * pView,
const fsPoint & pCell ) const

◆ parkPlacementValid()

fsBool gfCParkLevelComponent::parkPlacementValid ( fsNTileMap::fsCView * pView,
fsS32 pLocalX,
fsS32 pLocalY,
fsS32 pFootprintColumns,
fsS32 pFootprintRows ) const

◆ parkReputationGet()

fsS32 gfCParkLevelComponent::parkReputationGet ( ) const
inline

◆ pathFindCells()

std::vector< fsPoint > gfCParkLevelComponent::pathFindCells ( fsNTileMap::fsCView * pView,
const fsPoint & pFrom,
const fsPoint & pTo ) const

◆ progressPersist()

void gfCParkLevelComponent::progressPersist ( )

◆ progressSave()

void gfCParkLevelComponent::progressSave ( ) const

◆ repairArmedGet()

fsBool gfCParkLevelComponent::repairArmedGet ( ) const
inline

◆ repairArmedSet()

void gfCParkLevelComponent::repairArmedSet ( fsBool pArmed)
inline

◆ runtimeSlotGetByIndex()

fsBool gfCParkLevelComponent::runtimeSlotGetByIndex ( fsS32 pIndex,
fsStr & pNameOut,
fsVec2d & pPositionOut ) const

◆ runtimeSlotPositionGet()

fsBool gfCParkLevelComponent::runtimeSlotPositionGet ( const fsStr & pSlotName,
fsVec2d & pOut ) const

◆ serviceBuildingPlace()

fsBool gfCParkLevelComponent::serviceBuildingPlace ( fsNTileMap::fsCView * pView,
const fsStr & pImage,
const fsStr & pServiceType,
fsS32 pServiceTimeMs,
fsS32 pMaxQueueLength,
fsS32 pVisitorQuota,
fsS32 pVisitorAppeal,
fsS32 pDrawWidth,
fsS32 pFootprintColumns,
fsS32 pFootprintRows,
fsS32 pLocalX,
fsS32 pLocalY )

◆ serviceBuildingPresentationPlace()

fsCEntity * gfCParkLevelComponent::serviceBuildingPresentationPlace ( fsNTileMap::fsCView * pView,
const fsStr & pSlotName,
const fsStr & pImage,
fsS32 pDrawWidth,
fsS32 pLocalX,
fsS32 pLocalY )
static

◆ simGet() [1/2]

gfCParkDaySim * gfCParkLevelComponent::simGet ( )
inline

◆ simGet() [2/2]

const gfCParkDaySim * gfCParkLevelComponent::simGet ( ) const
inline

◆ slotPurchasedRecord()

void gfCParkLevelComponent::slotPurchasedRecord ( const fsStr & pSlotName,
fsS32 pServiceTimeMs,
fsS32 pMaxQueueLength,
const fsStr & pBuildingImage,
fsS32 pVisitorQuota = 0,
fsS32 pVisitorAppeal = 0 )

◆ staffDeployedRecord()

void gfCParkLevelComponent::staffDeployedRecord ( const fsStr & pSlotName)

◆ staffHiredRecord()

void gfCParkLevelComponent::staffHiredRecord ( const fsStr & pStaffType,
fsS32 pWage )

◆ staffRecalledRecord()

void gfCParkLevelComponent::staffRecalledRecord ( const fsStr & pSlotName)

◆ updateDo()

void gfCParkLevelComponent::updateDo ( fsS32 pDeltaMs)
overrideprotectedvirtual

Reimplemented from fsIComponent.

◆ fsCComponentFactory

friend class fsCComponentFactory
friend

Member Data Documentation

◆ mNumDays

const fsS32 gfCParkLevelComponent::mNumDays = 5
static

◆ mTypeId

const fsCUniqueId gfCParkLevelComponent::mTypeId
static

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