summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoverModule.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2MoverModule.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2MoverModule.h69
1 files changed, 44 insertions, 25 deletions
diff --git a/src/T2DLL/T2MoverModule.h b/src/T2DLL/T2MoverModule.h
index f9ce786..75a3626 100644
--- a/src/T2DLL/T2MoverModule.h
+++ b/src/T2DLL/T2MoverModule.h
@@ -1,40 +1,59 @@
#pragma once
#include "common.h"
+#include "LBroadcaster.h"
+#include "T2DrawableObject.h"
-class T2MoverModule {
+// unknown name
+struct T2MoverModuleMessageData {
+ T2MoverModule *moverModule;
+ int value;
+};
+
+class AFX_EXT_CLASS T2MoverModule : public T2DrawableObject, public LBroadcaster {
public:
T2MoverModule();
virtual ~T2MoverModule();
- virtual void SetUsed(int);
+ virtual void SetUsed(BOOL used);
virtual void RemoveContents(T2TowerDoc*);
virtual void StopAdded(T2TowerDoc*, T2Mover*, int);
virtual void StopRemoved(T2TowerDoc*, T2Mover*, int);
- virtual void Enter(T2Mover*, T2People*);
- virtual int Enter(CLink*);
- virtual int Leave(CLink*);
+ virtual void Enter(T2Mover*, T2People*);
+ virtual BOOL Enter(CLink* link);
+ virtual BOOL Leave(CLink* link);
+
+ void SetDirection(int);
+ void AddPosition(int);
+ void SetModuleID(T2TowerDoc*);
+
+ unsigned int GetModuleID() const { return mModuleID; }
+ int GetPosition() const { return mPosition; }
+ int GetDirection() const { return mDirection; }
+ int GetWaitCounter() const { return mWaitCounter; }
+ void SetWaitCounter(int v) { mWaitCounter = v; }
+ void SubWaitCounter(int v) { mWaitCounter -= v; }
+ int GetPatIndex() const { return mPatIndex; }
+ void SetPatIndex(int v) { mPatIndex = v; }
+ int GetNumPeople() const { return mNumPeople; }
+
protected:
virtual void LoadSelf(T2Archive&, T2TowerDoc*);
virtual void SaveSelf(T2Archive&);
-public:
- void SetDirection(int);
- void AddPosition(int);
-private:
- static unsigned int GetNewModuleID(T2TowerDoc*);
-public:
- void SetModuleID(T2TowerDoc*);
+
+ friend class T2StairModuleList;
+ friend class T2Mover;
+
+ int mPosition;
+ int mDirection;
+ int mWaitCounter;
+ int mPatIndex;
+ int mNumPeople;
+ int _4C;
+ unsigned int mModuleID;
+ // which one of these is first and which one is last?
+ CLink *mLink1;
+ CLink *mLink2;
+
private:
+ static unsigned int GetNewModuleID(T2TowerDoc*);
static unsigned int sModuleID;
-
-public:
- unsigned int GetModuleID() const {}
- int GetPosition() const {}
- int GetDirection() const {}
- int GetWaitCounter() const {}
- void SetWaitCounter(int) {}
- void SubWaitCounter(int) {}
- int GetPatIndex() const {}
- void SetPatIndex(int) {}
- int GetNumPeople() const {}
- T2MoverModule(const T2MoverModule&) {}
- T2MoverModule& operator=(const T2MoverModule&) {}
};