summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ElevatorModule.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2ElevatorModule.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/T2DLL/T2ElevatorModule.h b/src/T2DLL/T2ElevatorModule.h
new file mode 100644
index 0000000..66438d9
--- /dev/null
+++ b/src/T2DLL/T2ElevatorModule.h
@@ -0,0 +1,57 @@
+#pragma once
+#include "common.h"
+
+class T2ElevatorModule {
+public:
+ T2ElevatorModule(int);
+ virtual ~T2ElevatorModule();
+ void Init(int, int);
+ virtual void SetUsed(int);
+ int IsPtInArea(POINT, const RECT&) const;
+ virtual void StopAdded(T2TowerDoc*, T2Mover*, int);
+ virtual void StopRemoved(T2TowerDoc*, T2Mover*, int);
+ void Remove(T2TowerDoc*, T2Mover*);
+protected:
+ void RemoveContents(T2TowerDoc*, T2Mover*, int);
+ int HomePosRemoved(T2Mover*, int);
+ void TopTurnPosRemoved(int);
+ void BottomTurnPosRemoved(int);
+ void NextStopRemoved();
+public:
+ void MoverExpanded(T2Mover*, EEquipPos, int);
+ int IsStopPos(int, ERequestUpDown) const;
+ int IsOnStopPos(int, ERequestUpDown) const;
+ int IsOffStopPos(int, ERequestUpDown) const;
+ void SetOnStop(int, ERequestUpDown);
+ void SetOffStop(int, ERequestUpDown);
+ void ClearOnStop(T2Request*);
+ void ClearOffStop(T2Request*);
+ void SetNextStop();
+ void ChangeTurnPos();
+ void StartToHomePos();
+ T2Request* GetAppointRequest(T2FloorInfo*, T2Mover*);
+ T2Request* GetAnyRequest(T2FloorInfo*, T2Mover*);
+ void CalcUintArea(const T2Mover*, RECT&) const;
+protected:
+ void CalcUintArea(const T2Mover*, int, RECT&) const;
+public:
+ int IsPatChanged(T2Mover*);
+ T2People* LeaveToDstFloor(int);
+ virtual void Enter(T2Mover*, T2People*);
+protected:
+ virtual void LoadSelf(T2Archive&, T2TowerDoc*);
+ virtual void SaveSelf(T2Archive&);
+
+public:
+ int GetIndex() const {}
+ void SetHomePosition(int) {}
+ int GetOffsetPos() {}
+ void SetOffsetPos(int) {}
+ void AddOffsetPos(int) {}
+ int GetNextStop() const {}
+ int GetTopTurn() const {}
+ int GetBottomTurn() const {}
+ T2ElevatorModule(const T2ElevatorModule&) {}
+ T2ElevatorModule& operator=(const T2ElevatorModule&) {}
+ int GetHomePosition() const {}
+};