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

#include <gfCParkLevelComponent.h>

Inheritance diagram for gfCParkLevelComponent:

Classes

struct  SDecorationComfortSource

Public Member Functions

void levelCreate (const fsStr &pLevelName, fsBool pResume)
fsS32 dayRemainingMsGet () const
fsS32 dayIndexGet () const
fsBool finalDayGet () const
const gfCParkDaySim * simGet () const
gfCParkDaySim * simGet ()
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 (fsNTileMap::fsCView *pView, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pFootprintColumns, fsS32 pFootprintRows, fsS32 pLocalX, fsS32 pLocalY, fsS32 pVisitorAppeal=0, fsS32 pVisitorComfort=0)
std::vector< SDecorationComfortSource > decorationComfortSourcesGet (fsNTileMap::fsCView *pView) const
fsS32 walkingSatisfactionNearGet (fsNTileMap::fsCView *pView, const fsVec2d &pScreenPos) const
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, fsS32 pPurchaseCost=-1)
fsS32 buildingPurchaseCostGet (const fsStr &pSlotName) const
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< fsPoint > pathFindCells (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
fsS32 forestClearBrushSizeGet () const
std::vector< fsPoint > forestClearTargetsGet (fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) 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)
void scrollRefresh (fsNTileMap::fsCView *const pView)
void scrollTrackedAdd (fsCEntity *const pEntity, fsNTileMap::fsCView *const pView)
void scrollTrackedRemove (fsCEntity *const pEntity)
virtual ~gfCParkLevelComponent ()
Public Member Functions inherited from fsIMessageListenerComponent
 fsIMessageListenerComponent (fsCEntity *pParent)
 fsIMessageListenerComponent (fsCEntity *pParent, fsS32 pPriority)
 ~fsIMessageListenerComponent () override
Public Member Functions inherited from fsIComponent
template<typename TInterface>
std::vector< fsCEntity * > appSceneEntitiesWithComponentOfFamilyType () const
template<typename TInterface>
fsCEntity * appSceneFirstEntityWithComponentOfFamilyType () const
fsCEntity * appSceneEntityNamed (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 ()
fsCEntity * parentGet () const
fsCEntity * grandparentGet () 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 fsCEntity * decorationPresentationPlace (fsNTileMap::fsCView *pView, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pLocalX, fsS32 pLocalY)
static fsCEntity * serviceBuildingPresentationPlace (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

◆ buildingPurchaseCostGet()

fsS32 gfCParkLevelComponent::buildingPurchaseCostGet ( const fsStr & pSlotName) const

◆ 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

◆ decorationComfortSourcesGet()

std::vector< gfCParkLevelComponent::SDecorationComfortSource > gfCParkLevelComponent::decorationComfortSourcesGet ( fsNTileMap::fsCView * pView) const

◆ decorationPlacedRecord()

void gfCParkLevelComponent::decorationPlacedRecord ( fsNTileMap::fsCView * pView,
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 )

◆ forestClearBrushSizeGet()

fsS32 gfCParkLevelComponent::forestClearBrushSizeGet ( ) const

◆ forestClearCostGet()

fsS32 gfCParkLevelComponent::forestClearCostGet ( ) const

◆ forestClearTargetsGet()

std::vector< fsPoint > gfCParkLevelComponent::forestClearTargetsGet ( fsNTileMap::fsCView * pView,
fsS32 pCol,
fsS32 pRow ) 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

◆ scrollRefresh()

void gfCParkLevelComponent::scrollRefresh ( fsNTileMap::fsCView *const pView)

◆ scrollTrackedAdd()

void gfCParkLevelComponent::scrollTrackedAdd ( fsCEntity *const pEntity,
fsNTileMap::fsCView *const pView )

◆ scrollTrackedRemove()

void gfCParkLevelComponent::scrollTrackedRemove ( fsCEntity *const pEntity)

◆ 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,
fsS32 pPurchaseCost = -1 )

◆ 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.

◆ walkingSatisfactionNearGet()

fsS32 gfCParkLevelComponent::walkingSatisfactionNearGet ( fsNTileMap::fsCView * pView,
const fsVec2d & pScreenPos ) const

◆ 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: