summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ElevatorModule.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
commit5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch)
tree62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2ElevatorModule.h
parentc0c336500955a23e344651e5412c9d9d441ef4ee (diff)
downloadt2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz
t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip
i am in hell
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2ElevatorModule.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/T2DLL/T2ElevatorModule.h b/src/T2DLL/T2ElevatorModule.h
index 78b737d..c1151fe 100644
--- a/src/T2DLL/T2ElevatorModule.h
+++ b/src/T2DLL/T2ElevatorModule.h
@@ -20,7 +20,7 @@ enum {
kElevatorDirection2
};
-class AFX_EXT_CLASS T2ElevatorModule : public T2MoverModule {
+class AFX_CLASS_EXPORT T2ElevatorModule : public T2MoverModule {
public:
T2ElevatorModule(int index);
virtual ~T2ElevatorModule();
@@ -50,6 +50,7 @@ public:
T2People* LeaveToDstFloor(int y);
int GetIndex() const { return mIndex; }
+ int GetHomePosition() const;
void SetHomePosition(int v) { mHomePosition = v; }
int GetOffsetPos() { return mOffsetPos; }
void SetOffsetPos(int v) { mOffsetPos = v; }
@@ -57,12 +58,6 @@ public:
int GetNextStop() const { return mNextStop; }
int GetTopTurn() const { return mTopTurn; }
int GetBottomTurn() const { return mBottomTurn; }
- int GetHomePosition() const {
- int result = -1;
- if (mUsed)
- result = mHomePosition;
- return result;
- }
protected:
virtual void LoadSelf(T2Archive&, T2TowerDoc*);
@@ -84,3 +79,10 @@ protected:
int mBottomTurn;
T2StopInfoArray *mStopInfoArray;
};
+
+inline int T2ElevatorModule::GetHomePosition() const {
+ int result = -1;
+ if (mUsed)
+ result = mHomePosition;
+ return result;
+}