diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
commit | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch) | |
tree | eaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2TenantDef.h | |
download | t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2TenantDef.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/T2DLL/T2TenantDef.h b/src/T2DLL/T2TenantDef.h new file mode 100644 index 0000000..0657566 --- /dev/null +++ b/src/T2DLL/T2TenantDef.h @@ -0,0 +1,51 @@ +#pragma once +#include "common.h" + +class T2TenantDef { +public: + T2TenantDef(unsigned long, T2PluginSpecifier&, CResFile*, T2WorldDef*, T2TenantPlugin*); + virtual ~T2TenantDef(); + virtual void GetName(CString&); + virtual int InitObject(T2Object*); + virtual void DrawProc(T2HaveOutViewObject*, const RECT&, T2TowerDoc*) const; + virtual int DrawData(int); + virtual void DrawPeople(T2TowerDoc*, T2Equip*); + virtual int DrawAttribute(int); + virtual unsigned int IdleProc(T2HaveOutViewObject*, T2TowerDoc*); + virtual int ChangeStatusOnIdle(T2TowerDoc*, T2Tenant*, int); + virtual AREACHECKCODE AreaCheck(T2TowerDoc*, RECT&, unsigned int, int); + virtual int CalcPayment(T2TowerDoc*, RECT&, unsigned int); + virtual void EnterTenant(T2TowerDoc*, T2Tenant*, T2People*); + virtual void LeaveTenant(T2TowerDoc*, T2Tenant*, T2People*); + virtual void BuildStartProc(T2TowerDoc*, T2Tenant*); + virtual void DoPeopleAnimation(T2TowerDoc*, T2Tenant*); + virtual int GetQTMovieName(T2Tenant*, CString&); + void SetCustomerTable(T2SubPlugin*); + void MakeCustomerTableDef(int, const char*); +protected: + float CalcNumOfCustomerUnit(); +public: + virtual int EmergencyProc(T2TowerDoc*, T2Equip*); + virtual int CalcMentenanceCostProc(const T2HaveOutViewObject*) const; + + virtual int IsTenant() {} + int IsFloor() {} + int IsValiableLength() {} + int IsHome() {} + int IsConcat() {} + int IsPeopleAnime() {} + int GetEntranceV() {} + int GetEntranceH() {} + int GetExitV() {} + int GetExitH() {} + int GetNumOfPattern() const {} + int GetNumOfKind() {} + int GetBelongCapacity() const {} + unsigned int GetRegistID() const {} + unsigned int GetDownFlag() const {} + int GetSenseOfNoise() const {} + T2PeopleAnimeDef* GetPeopleAnimeDef() const {} + T2TenantMemberTableDef* GetEmployeeTableDef() const {} + T2TenantMemberTableDef* GetCustomerTableDef() const {} + T2TenantDef& operator=(T2TenantDef&) {} +}; |