From 37e364b2c6cc7487a1c888d256a73e5337bb7189 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Jun 2023 00:50:34 +0100 Subject: initial commit --- src/T2DLL/T2TenantDef.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/T2DLL/T2TenantDef.h (limited to 'src/T2DLL/T2TenantDef.h') 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&) {} +}; -- cgit v1.2.3