diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2Object.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2Object.h | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/src/T2DLL/T2Object.h b/src/T2DLL/T2Object.h index 8084bc7..e7c2c4b 100644 --- a/src/T2DLL/T2Object.h +++ b/src/T2DLL/T2Object.h @@ -2,14 +2,50 @@ #include "common.h" #include "CLink.h" -class DLL_EXPORT T2Object { +enum { + kStatus0, + // "out of the tower" + kStatus1, + // "just on the floor" + kStatus2, + // "on the floor" + kStatus3, + // "looking for the route" + kStatus4, + // "going to the mover" + kStatus5, + // "waiting the mover" + kStatus6, + // "on the mover" + kStatus7, + // "just taking the mover" + kStatus8, + // "just getting off the mover" + kStatus9, + // "going to the tenant" + kStatus10, + // "in the tenant" + kStatus11, + // "going out the tower" + kStatus12, + // "goint to the emergency stair" + kStatus13, + // "going to the point" + kStatus14, + // "stopping" + kStatus15, + // "on the transporter" + kStatus16, +}; + +class AFX_EXT_CLASS T2Object { public: T2Object(); virtual ~T2Object() {} virtual void SetUsed(BOOL u) { mUsed = u; } - virtual int Enter(CLink*) { return 0; } - virtual int Leave(CLink*) { return 0; } + virtual BOOL Enter(CLink*) { return false; } + virtual BOOL Leave(CLink*) { return false; } virtual unsigned int Idle(T2TowerDoc*) { return 0; } virtual void SetFavorite(BOOL v); virtual void Load(T2Archive& archive, T2TowerDoc* towerDoc); |