summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2Mover.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2Mover.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2Mover.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/T2DLL/T2Mover.h b/src/T2DLL/T2Mover.h
new file mode 100644
index 0000000..18326bd
--- /dev/null
+++ b/src/T2DLL/T2Mover.h
@@ -0,0 +1,71 @@
+#pragma once
+#include "common.h"
+
+class T2Mover {
+public:
+ T2Mover();
+ virtual ~T2Mover();
+ virtual void SetUsed(int);
+ int InitMover(T2MoverDef*, const RECT&, unsigned int);
+ int InitStair(T2MoverDef*, const RECT&, unsigned int);
+ int InitElevator(T2MoverDef*, const RECT&, unsigned int);
+ void GetTypicalName(CString&) const;
+ virtual PROCCODE DoDestruct(T2TowerDoc*, POINT, RECT&);
+ virtual int Destruct(T2TowerDoc*, CRect&);
+ virtual void Draw(T2TowerDoc*, const RECT&);
+ int GetNumStop() const;
+ void AddStopBoth(T2TowerDoc*, int);
+ int AddStop(T2FloorInfo*, int, ERequestUpDown);
+ void RemoveStopBoth(T2TowerDoc*, int);
+ void RemoveStop(T2TowerDoc*, int, ERequestUpDown);
+ void RemoveCrossEquipID(T2FloorInfo*, int);
+ void RemoveUnstoppable(T2TowerDoc*);
+ void AddCrossEquipID(T2FloorInfo*, int);
+ void AddCEFloorID(T2FloorInfo*, int);
+ void ReplaceID(T2FloorInfo*, unsigned int);
+ POINT PositionToStopPt(int, ERequestUpDown);
+ int UnitToPosition(int) const;
+ int PositionToUnit(int) const;
+ int IsStopPosition(int) const;
+ int IsStopPosition(int, ERequestUpDown);
+ int AddModule(T2TowerDoc*, int);
+ void AddStairModule(T2TowerDoc*, const RECT&, int);
+ unsigned int GetRequestID(int, int) const;
+ int GetModuleCount() const;
+ int FindStairModule(T2TowerDoc*, POINT, T2MoverModule*&, T2MoverModule*&);
+ int CalcModuleRect(const T2MoverModule*, RECT&, int&) const;
+ T2MoverModule* FindPeople(const T2People*) const;
+ void CalcMachineArea(EEquipPos, RECT&) const;
+ void AdjustLength();
+ T2Request* GetRequest(T2FloorInfo*, int, int) const;
+ int CalcScore(int) const;
+ int ExpandArea(T2TowerDoc*, EEquipPos, int);
+ int IsHomePosition(int) const;
+ void CalcBodyArea(RECT&) const;
+ int CalcModulePos(T2MoverModule*, ERequestUpDown);
+ void ShowShaft();
+ void HideShaft();
+ virtual unsigned int Idle(T2TowerDoc*);
+protected:
+ virtual void LoadSelf(T2Archive&, T2TowerDoc*);
+ virtual void SaveSelf(T2Archive&);
+public:
+ virtual T2InfoDialog* ShowInfoDialog(T2TowerDoc*, CPoint);
+
+ void SetShowShaft(int) {}
+ void StartBuild() {}
+ virtual int IsBuildFinish() {}
+ virtual int Enter(CLink*) {}
+ virtual int Leave(CLink*) {}
+ T2Mover(const T2Mover&) {}
+ T2Mover& operator=(const T2Mover&) {}
+ int IsStair() const {}
+ int IsElevator() const {}
+ int IsCheckRequest() const {}
+ void SetCheckRequest(int) {}
+ int GetLength() const {}
+ int GetWaitCount() const {}
+ T2RequestIDArray* GetReqIDArray() const {}
+ T2MoverModuleList* GetModuleList() const {}
+ int IsShaftVisible() const {}
+};