summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Tenant.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2Tenant.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to 'src/T2DLL/T2Tenant.h')
-rw-r--r--src/T2DLL/T2Tenant.h188
1 files changed, 188 insertions, 0 deletions
diff --git a/src/T2DLL/T2Tenant.h b/src/T2DLL/T2Tenant.h
new file mode 100644
index 0000000..fd2a6fa
--- /dev/null
+++ b/src/T2DLL/T2Tenant.h
@@ -0,0 +1,188 @@
+#pragma once
+#include "common.h"
+
+class T2Tenant {
+public:
+ T2Tenant();
+ virtual ~T2Tenant();
+ unsigned int GetFloorID(int);
+ void SetFloorID(T2FloorInfo*);
+ virtual PROCCODE DoDestruct(T2TowerDoc*, POINT, RECT&);
+protected:
+ void AddPopulation(T2People*);
+ void SubPopulation(T2People*);
+public:
+ virtual int Enter(CLink*);
+ virtual int Leave(CLink*);
+ void EnterTenant(T2TowerDoc*, T2People*);
+ void LeaveTenant(T2TowerDoc*, T2People*);
+ virtual void Draw(T2TowerDoc*, const RECT&);
+protected:
+ virtual void DrawSelf(T2TowerDoc*, const RECT&);
+public:
+ virtual unsigned int Idle(T2TowerDoc*);
+ virtual void AddCEMoverID(const T2FloorInfo*, POINT, unsigned int);
+ int InitTenant(T2TenantDef*, const RECT&, unsigned int);
+protected:
+ virtual void LoadSelf(T2Archive&, T2TowerDoc*);
+ virtual void SaveSelf(T2Archive&);
+public:
+ virtual unsigned int GetEntranceFloorID();
+ POINT GetEntrancePt() const;
+ virtual unsigned int GetExitFloorID();
+ POINT GetExitPt();
+ T2People* GetFirstCustomer() const;
+ int GetBelongCapacity();
+ int IsTherePeople(T2People*);
+ void StartBuild();
+ void UpdatePatternIndex();
+ void UpdatePatternIndex(int);
+ int GetNumOfPattern() const;
+protected:
+ int CollectCustomerFromPool(T2TowerDoc*, T2TenantMemberTableDef*, unsigned int, T2Tenant*);
+ int CollectCustomerFromTenant(T2TowerDoc*, T2TenantMemberTableDef*, unsigned int);
+ int CollectCustomerFromFloor(T2TowerDoc*, T2TenantMemberTableDef*, unsigned int);
+public:
+ void CollectCustomer(T2TowerDoc*, T2Tenant*);
+ void CollectCustomer(T2TowerDoc*, int);
+ int CollectEmployee(T2TowerDoc*);
+ void RegistBelongPeople(T2People*);
+ int CalcInMoney() const;
+ void EnterCustomer(T2People*, int);
+ int IsBelongPeople(T2People*) const;
+ void PushOutPeople(T2TowerDoc*, T2People*);
+ void PushOutAll(T2TowerDoc*);
+ void PushOutAllCustomer(T2TowerDoc*);
+ int GetPriceIndex() const;
+protected:
+ void DuplicateBelongPeople(T2TowerDoc*);
+ void RemoveBelongPeople(T2TowerDoc*);
+public:
+ void RemovePeople(T2TowerDoc*);
+ void ClearBelongPeople();
+ void ClearBelongPeople(T2People*);
+ void CallBelongPeople(unsigned int);
+ T2People* GetBelongPeople(int);
+ T2People* GetBelongPeopleIn(int);
+ void SetKind();
+protected:
+ int GetNumOfKind() const;
+public:
+ virtual void SetUsed(int);
+ unsigned int GetRegistID() const;
+ int GetEmployeeSearchScore() const;
+ int GetCustomerSearchScore() const;
+ int IsMoverAvailable() const;
+ void RemoveBelongList();
+ int GetQTMovieName(CString);
+ void Destruct(T2TowerDoc*, CRect&);
+ void SetBindTime(T2People*, unsigned int);
+ int SetEstimate(int);
+ int SetPeopleAnime();
+ void SetPeopleAnime(T2People*, int);
+ void PushOutCustomer(T2TowerDoc*, int);
+ int GetBelongPeopleIndex(T2People*, int&) const;
+ int SetPeopleToSleep();
+ void SetAllPeopleToSleep();
+ void UnionFloorPeople(T2Tenant*);
+ int IsWithinSearchRange(T2TowerDoc*, T2Tenant*) const;
+ void SetMoviePlugin(T2SubPlugin*);
+ void SetHallEventPlugin(T2HallEventPlugin*);
+ int GetFloorNumber(T2FloorInfo*) const;
+ int GetRoomNumber(T2FloorInfo*) const;
+ void GetRoomName(T2TowerDoc*, CString&) const;
+ virtual void PlaySoundA(T2TowerDoc*, int, unsigned int, unsigned int) const;
+ int IsEmptyParking() const;
+ T2People* FindPeople(POINT) const;
+protected:
+ int InitBelongList();
+ void DrawViewModeColor(T2TowerDoc*) const;
+ void DrawTrafficColor(T2TowerDoc*, const CRect&) const;
+ static void DrawColorMesh(T2TowerDoc*, const CRect&, int);
+public:
+ void IncPeopleEstimate(int);
+ int CalcEstimateColor() const;
+protected:
+ int CollectEmployeeFromPool(T2TowerDoc*, T2TenantMemberTableDef*);
+public:
+ int IsRegist() const;
+protected:
+ unsigned int CheckRouteFromPool(T2TowerDoc*, unsigned int) const;
+public:
+ T2TenantMemberTableDef* GetCustomerTableDef(int) const;
+ int UpdateResidencialEstimate(T2TowerDoc*);
+ void BreakoutEmergency(T2TowerDoc*);
+ void BurntDown(T2TowerDoc*);
+ void RecoverRelatedTenantList(T2RegistedTenantDB*);
+ int GetTotalBelong() const;
+ int CanReplaceWorker() const;
+ int ReplaceWorker(T2TowerDoc*, T2People*);
+ void CallEmployee(unsigned int);
+ int DecideResidencialEstimation(T2TowerDoc*);
+ int UpdateCommercialEstimate();
+ int CalcProfitEstimate() const;
+ void GetMerchandise(int&, int*&);
+ T2TenantMemberTableDef* GetMerchandiseTMT();
+ void SetMerchandise(int, int*);
+ void SetRelatedTenant(T2TowerDoc*, unsigned int);
+ virtual void BuildStart(T2TowerDoc*);
+
+ unsigned int GetResideDay() const {}
+ int GetEstimate() const {}
+ void SetRelatedTenantID(unsigned int) {}
+ unsigned int GetRelatedTenantID() const {}
+ int IsSetRelatedTenantID() const {}
+ int IsFloor() const {}
+ int IsPoolTenant() const {}
+ int IsHome() const {}
+ int IsConcat() const {}
+ int IsPeopleAnime() const {}
+ int IsNeedToilet() const {}
+ int IsNeedDraw() {}
+ int IsTherePeople() const {}
+ int IsThereCustomer() const {}
+ T2People* GetFirstPeople() const {}
+ int IsOpen() const {}
+ int WillBeFull() const {}
+ int CalcRestCapacity() const {}
+ void SetMark(int) {}
+ int GetMark() const {}
+ int GetBelongCount() const {}
+ void ClearWorkCount() {}
+ int GetTotalCustomer() const {}
+ void ClearTotalCustomer() {}
+ void IncTotalCustomer() {}
+ T2PeoplePtrList* GetBelongList() const {}
+ void SetRelatedTenantList(T2EquipPtrList*) {}
+ T2EquipPtrList* GetRelatedTenantList() const {}
+ virtual int IsBuildFinish() {}
+ int IsFire() {}
+ int IsFireproof() const {}
+ unsigned int GetTenantNumber() const {}
+ void SetTenantNumber(unsigned int) {}
+protected:
+ int GetConsumptionPower() const {}
+public:
+ T2Tenant(const T2Tenant&) {}
+ T2Tenant& operator=(const T2Tenant&) {}
+ virtual void ClearDrawMode() {}
+ int IsBind() const {}
+ void Bind() {}
+ void Unbind() {}
+ unsigned int GetOpenTime() const {}
+ unsigned int GetCloseTime() const {}
+ int GetBindTime() const {}
+ T2TenantMemberTableDef* GetEmployeeTableDef() const {}
+ int IsFull() const {}
+ int GetCustomerCount() const {}
+ int GetKindIndex() const {}
+ void SetKindIndex(int) {}
+ void IncWorkCount() {}
+ void DecWorkCount() {}
+ int GetWorkCount() const {}
+ void ClearReserveCount() {}
+ void IncReserveCount(unsigned int) {}
+ void DecReserveCount() {}
+ int GetReserveCount() const {}
+ void CancelReserve() {}
+};