Fission FSN
Loading...
Searching...
No Matches
gfCPurchaseActionSlotFill.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCPurchaseActionSlotFill.h
4*
5* Purpose: Debug purchase action - drops a static placeholder
6* sprite onto a named tagged plot object in the current
7* park map. Proves the catalogue/purchase/tile-map
8* wiring end to end (Phase 3 gate). Real slot state
9* (locked/open/busy, capacity, service timers) is
10* Phase 4's job, not this.
11*
12*********************************************************************/
13
14#ifndef gfCPurchaseActionSlotFillhdr
15#define gfCPurchaseActionSlotFillhdr
16
17#include <fsCore/fsBaseTypes.h>
18#include <fsCore/fsStr.h>
19
21
22namespace fsNTileMap { class fsCView; }
23
24
26{
27public:
28
29 fsBool purchaseHandle(const gfCCatalogueItem* pShopItem) override;
30
31 // Places (or re-places) a purchased building's sprite on its slot: sizes it
32 // to the slot footprint, removes the greybox marker and makes it staff-tap
33 // enabled. Shared by the purchase path and by level restore (Continue), so a
34 // reloaded park shows its bought buildings, not empty slots. False if the
35 // named slot object isn't in the map. pBuildingImage may be empty (draws an
36 // opaque block). Presentation only - the sim/economy stay with the caller.
37 static fsBool buildingPresentationPlace(fsNTileMap::fsCView* pView, const fsStr& pSlotName,
38 const fsStr& pBuildingImage);
39
42};
43
44#endif
Definition fsCView.h:28
Definition fsStr.h:23
Definition gfCCatalogueItem.h:16
fsBool purchaseHandle(const gfCCatalogueItem *pShopItem) override
Definition gfCPurchaseActionSlotFill.cpp:128
static fsBool buildingPresentationPlace(fsNTileMap::fsCView *pView, const fsStr &pSlotName, const fsStr &pBuildingImage)
Definition gfCPurchaseActionSlotFill.cpp:33
gfCPurchaseActionSlotFill()
Definition gfCPurchaseActionSlotFill.cpp:207
virtual ~gfCPurchaseActionSlotFill()
Definition gfCPurchaseActionSlotFill.cpp:211
gfIPurchaseAction()
Definition gfIPurchaseAction.h:29
bool fsBool
Definition fsBaseTypes.h:26
Definition fsILayer.h:21