23#ifndef gfCParkLevelComponenthdr
24#define gfCParkLevelComponenthdr
78 const fsStr& pBuildingImage,
fsS32 pVisitorQuota = 0,
79 fsS32 pVisitorAppeal = 0);
92 fsS32 pVisitorComfort = 0);
126 const fsStr& pServiceType,
fsS32 pServiceTimeMs,
129 fsS32 pFootprintColumns,
fsS32 pFootprintRows,
138 const fsStr& pSlotName,
155 fsS32 pFootprintColumns,
fsS32 pFootprintRows)
const;
247 void guestTemplatesLoad();
248 void progressRestore();
249 fsS32 visitorQuotaHighestOwnedGet()
const;
250 fsS32 visitorDemandFromParkGet()
const;
251 fsS32 walkingSatisfactionFromParkGet()
const;
252 void visitorNumbersRefresh();
253 void reputationSettle();
265 const fsStr& pImagePath,
fsF32 pDrawScale,
fsBool pRepairDispatchTap =
false);
277 struct SScrollTracked
283 static const fsS32 mDayDurationMs;
286 fsS32 mDayRemainingMs;
291 fsS32 mAutosaveTimerMs;
297 fsS32 mServiceTimeMs;
298 fsS32 mMaxQueueLength;
300 fsStr mBuildingImage;
305 fsS32 mDrawWidth = 0;
306 fsS32 mFootprintColumns = 0;
307 fsS32 mFootprintRows = 0;
310 fsS32 mVisitorQuota = 0;
311 fsS32 mVisitorAppeal = 0;
312 fsS32 mPurchaseCost = -1;
324 struct SOwnedDecoration
327 fsS32 mDrawWidth = 0;
328 fsS32 mFootprintColumns = 1;
329 fsS32 mFootprintRows = 1;
332 fsS32 mVisitorAppeal = 0;
333 fsS32 mVisitorComfort = 0;
336 std::vector<SOwnedSlot> mPurchasedSlots;
337 struct SDeployedStaff
342 std::vector<SDeployedStaff> mDeployedSlots;
343 std::vector<SHiredStaff> mHiredStaff;
344 std::vector<SOwnedDecoration> mOwnedDecorations;
347 std::vector<fsPoint> mClearedCells;
349 fsS32 mForestLayerId;
351 fsS32 mParkReputation;
352 fsS32 mReputationSettledDay;
354 fsS32 mRuntimeSlotSequence;
357 fsNTileMap::fsCView* mView;
358 fsPoint mLastScrollPixel;
359 std::vector<SScrollTracked> mScrollTracked;
361 std::unique_ptr<gfCParkDaySim> mSim;
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
Definition fsCUserSavedData.h:25
Definition fsIComponent.h:26
fsIMessageListenerComponent(fsCEntity *pParent)
Definition fsIMessageListenerComponent.cpp:9
Definition gfCParkDaySim.h:25
fsS32 dayRemainingMsGet() const
Definition gfCParkLevelComponent.h:53
void scrollTrackedRemove(fsCEntity *const pEntity)
Definition gfCParkLevelComponent.cpp:1198
void listenersRegisterDo() override
Definition gfCParkLevelComponent.cpp:1673
gfCParkDaySim * simGet()
Definition gfCParkLevelComponent.h:57
void scrollRefresh(fsNTileMap::fsCView *const pView)
Definition gfCParkLevelComponent.cpp:1592
fsBool runtimeSlotPositionGet(const fsStr &pSlotName, fsVec2d &pOut) const
Definition gfCParkLevelComponent.cpp:752
static fsCEntity * decorationPresentationPlace(fsNTileMap::fsCView *pView, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pLocalX, fsS32 pLocalY)
Definition gfCParkLevelComponent.cpp:533
void levelCreate(const fsStr &pLevelName, fsBool pResume)
Definition gfCParkLevelComponent.cpp:259
void listenersDeregisterDo() override
Definition gfCParkLevelComponent.cpp:1679
fsBool cellForestGet(fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
Definition gfCParkLevelComponent.cpp:927
virtual ~gfCParkLevelComponent()
Definition gfCParkLevelComponent.cpp:1943
friend class fsCComponentFactory
Definition gfCParkLevelComponent.h:42
const gfCParkDaySim * simGet() const
Definition gfCParkLevelComponent.h:56
fsBool finalDayGet() const
Definition gfCParkLevelComponent.h:55
std::vector< SDecorationComfortSource > decorationComfortSourcesGet(fsNTileMap::fsCView *pView) const
Definition gfCParkLevelComponent.cpp:618
void dayAdvance()
Definition gfCParkLevelComponent.cpp:1581
static const fsCUniqueId mTypeId
Definition gfCParkLevelComponent.h:46
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition gfCParkLevelComponent.cpp:1685
fsBool parkPlacementValid(fsNTileMap::fsCView *pView, fsS32 pLocalX, fsS32 pLocalY, fsS32 pFootprintColumns, fsS32 pFootprintRows) const
Definition gfCParkLevelComponent.cpp:800
fsBool forestClearAt(fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow)
Definition gfCParkLevelComponent.cpp:1285
fsVec2d cellCentreLocal(fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
Definition gfCParkLevelComponent.cpp:977
void updateDo(fsS32 pDeltaMs) override
Definition gfCParkLevelComponent.cpp:1625
void staffDeployedRecord(const fsStr &pSlotName)
Definition gfCParkLevelComponent.cpp:1528
fsS32 walkingSatisfactionNearGet(fsNTileMap::fsCView *pView, const fsVec2d &pScreenPos) const
Definition gfCParkLevelComponent.cpp:1464
static fsIComponent *const create(fsCEntity *const pParent)
Definition gfCParkLevelComponent.cpp:1921
fsPoint nearestReachableCell(fsNTileMap::fsCView *pView, const fsPoint &pFrom, const fsPoint &pDesired) const
Definition gfCParkLevelComponent.cpp:1106
fsPoint nearestWalkableCell(fsNTileMap::fsCView *pView, const fsPoint &pCell) const
Definition gfCParkLevelComponent.cpp:1072
void repairArmedSet(fsBool pArmed)
Definition gfCParkLevelComponent.h:211
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)
Definition gfCParkLevelComponent.cpp:687
void staffRecalledRecord(const fsStr &pSlotName)
Definition gfCParkLevelComponent.cpp:1534
fsS32 lastDayWagesGet() const
Definition gfCParkLevelComponent.h:205
void scrollTrackedAdd(fsCEntity *const pEntity, fsNTileMap::fsCView *const pView)
Definition gfCParkLevelComponent.cpp:1184
fsS32 forestClearCostGet() const
Definition gfCParkLevelComponent.cpp:1170
std::vector< fsPoint > pathFindCells(fsNTileMap::fsCView *pView, const fsPoint &pFrom, const fsPoint &pTo) const
Definition gfCParkLevelComponent.cpp:991
void progressSave() const
Definition gfCParkLevelComponent.cpp:1715
fsS32 parkReputationGet() const
Definition gfCParkLevelComponent.h:206
void staffHiredRecord(const fsStr &pStaffType, fsS32 pWage)
Definition gfCParkLevelComponent.cpp:1511
fsS32 dailyWagesGet() const
Definition gfCParkLevelComponent.cpp:1519
fsBool repairArmedGet() const
Definition gfCParkLevelComponent.h:210
fsS32 forestClearBrushSizeGet() const
Definition gfCParkLevelComponent.cpp:1222
fsPoint cellFromLocal(fsNTileMap::fsCView *pView, const fsVec2d &pLocal) const
Definition gfCParkLevelComponent.cpp:960
void progressPersist()
Definition gfCParkLevelComponent.cpp:1793
gfCParkLevelComponent(fsCEntity *const pParent)
Definition gfCParkLevelComponent.cpp:1926
fsS32 dayIndexGet() const
Definition gfCParkLevelComponent.h:54
fsS32 buildingPurchaseCostGet(const fsStr &pSlotName) const
Definition gfCParkLevelComponent.cpp:745
std::vector< fsPoint > forestClearTargetsGet(fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
Definition gfCParkLevelComponent.cpp:1228
fsBool cellWalkableGet(fsNTileMap::fsCView *pView, fsS32 pCol, fsS32 pRow) const
Definition gfCParkLevelComponent.cpp:946
void slotPurchasedRecord(const fsStr &pSlotName, fsS32 pServiceTimeMs, fsS32 pMaxQueueLength, const fsStr &pBuildingImage, fsS32 pVisitorQuota=0, fsS32 pVisitorAppeal=0)
Definition gfCParkLevelComponent.cpp:1387
static const fsS32 mNumDays
Definition gfCParkLevelComponent.h:47
void decorationPlacedRecord(fsNTileMap::fsCView *pView, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pFootprintColumns, fsS32 pFootprintRows, fsS32 pLocalX, fsS32 pLocalY, fsS32 pVisitorAppeal=0, fsS32 pVisitorComfort=0)
Definition gfCParkLevelComponent.cpp:594
static fsCEntity * serviceBuildingPresentationPlace(fsNTileMap::fsCView *pView, const fsStr &pSlotName, const fsStr &pImage, fsS32 pDrawWidth, fsS32 pLocalX, fsS32 pLocalY)
Definition gfCParkLevelComponent.cpp:639
fsBool runtimeSlotGetByIndex(fsS32 pIndex, fsStr &pNameOut, fsVec2d &pPositionOut) const
Definition gfCParkLevelComponent.cpp:772
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
float fsF32
Definition fsBaseTypes.h:28
Definition fsIMessageDispatcher.h:32
Definition gfCParkLevelComponent.h:98
fsS32 mComfort
Definition gfCParkLevelComponent.h:100
fsVec2d mPos
Definition gfCParkLevelComponent.h:99
fsStr mImage
Definition gfCParkLevelComponent.h:103