diff options
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&) {} +}; |