diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
commit | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch) | |
tree | 62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2RoutingTableElem.h | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2RoutingTableElem.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/T2DLL/T2RoutingTableElem.h b/src/T2DLL/T2RoutingTableElem.h new file mode 100644 index 0000000..376a1f6 --- /dev/null +++ b/src/T2DLL/T2RoutingTableElem.h @@ -0,0 +1,30 @@ +#pragma once +#include "common.h" + +class AFX_CLASS_EXPORT T2RoutingTableElem { +public: + T2RoutingTableElem(); + ~T2RoutingTableElem(); + BOOL IsStopFloor() const; + void SetTable(unsigned int inNextFloorID, int inFinalHPos); + BOOL IsSetTable(unsigned int inNextFloorID, unsigned int inScore, int inTime, int inFinalHPos); + BOOL HasRoute() const; + BOOL HasNextRoute(unsigned int inFloorID) const; + + unsigned int GetNextFloorID() const; + unsigned int GetScore() const; + int GetTime() const; + int GetFinalHPos() const; + +protected: + unsigned int mNextFloorID; + unsigned int mScore; + int mTime; + int mFinalHPos; +}; + +inline unsigned int T2RoutingTableElem::GetNextFloorID() const { return mNextFloorID; } +inline unsigned int T2RoutingTableElem::GetScore() const { return mScore; } +inline int T2RoutingTableElem::GetTime() const { return mTime; } +inline int T2RoutingTableElem::GetFinalHPos() const { return mFinalHPos; } +inline BOOL T2RoutingTableElem::HasRoute() const { return (mNextFloorID != 0); } |