summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Request.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2Request.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/T2DLL/T2Request.h b/src/T2DLL/T2Request.h
new file mode 100644
index 0000000..0657b3a
--- /dev/null
+++ b/src/T2DLL/T2Request.h
@@ -0,0 +1,67 @@
+#pragma once
+#include "common.h"
+
+class T2Request {
+public:
+ T2Request();
+ virtual ~T2Request();
+ void InitRequest(unsigned int, int, const RECT&);
+ void InitRequest(T2FloorInfo*, unsigned int, POINT, ERequestUpDown);
+ void RemoveRequest(T2TowerDoc*);
+protected:
+ void RemoveContents(T2FloorInfo*);
+public:
+ virtual void SetUsed(int);
+ void StopRemoved(T2TowerDoc*, int);
+ void CalcArea(RECT&);
+ void CalcOnArea(RECT&);
+ void CalcOffArea(RECT&);
+ void CalcPrevArea(RECT&);
+ int CalcPersonArea(T2People*, RECT&);
+ virtual int Enter(CLink*);
+ virtual int Leave(CLink*);
+ T2People* LeaveFirst();
+ int Regist(T2TowerDoc*, T2People*);
+ void ChangeOffPPLStatus(T2FloorInfo*, T2People*);
+ void AddOnPeople(T2People*);
+ T2People* RemoveOnPeople();
+ void AddOffPeople(T2People*);
+ T2People* RemoveOffPeople();
+ virtual unsigned int Idle(T2TowerDoc*);
+ virtual void Draw(T2TowerDoc*, const RECT&);
+protected:
+ void DrawUp(T2TowerDoc*, const RECT&);
+ void DrawDown(T2TowerDoc*, const RECT&);
+ void* GetInfoClick(T2TowerDoc*, POINT);
+ void* GetInfoClickUp(T2TowerDoc*, POINT);
+ void* GetInfoClickDown(T2TowerDoc*, POINT);
+public:
+ void BreakoutEmergency(T2TowerDoc*);
+protected:
+ virtual void LoadSelf(T2Archive&, T2TowerDoc*);
+ virtual void SaveSelf(T2Archive&);
+public:
+ T2People* FindPeople(int) const;
+protected:
+ int CalcIncQueueArea(RECT&) const;
+ void DrawFinished();
+ T2People* FindUpPeople(int) const;
+ T2People* FindDownPeople(int) const;
+public:
+ void CalcValidArea(RECT&);
+ virtual void DrawHitMask(T2TowerDoc*);
+
+ unsigned int GetRequestID() const {}
+ unsigned int GetMoverID() const {}
+ void MoverIDChanged(unsigned int) {}
+ ERequestUpDown GetUpDown() const {}
+ POINT GetHeadPosition() const {}
+ int GetModuleIndex() const {}
+ int IsModuleReserved() const {}
+ void CancelReservingModule() {}
+ int GetDrawWidth() const {}
+ void SetDrawWidth(int) {}
+ int GetNumOfContent() const {}
+ T2Request(const T2Request&) {}
+ T2Request& operator=(const T2Request&) {}
+};