From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2RoutingTableElem.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/T2DLL/T2RoutingTableElem.h (limited to 'src/T2DLL/T2RoutingTableElem.h') 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); } -- cgit v1.2.3