summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2RoutingTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2RoutingTable.cpp43
1 files changed, 2 insertions, 41 deletions
diff --git a/src/T2DLL/T2RoutingTable.cpp b/src/T2DLL/T2RoutingTable.cpp
index c6ae7fa..df91553 100644
--- a/src/T2DLL/T2RoutingTable.cpp
+++ b/src/T2DLL/T2RoutingTable.cpp
@@ -1,9 +1,11 @@
+#include "T2CrossEquipArray.h"
#include "T2FInfoAreaIterator.h"
#include "T2FloorInfo.h"
#include "T2FloorPtrList.h"
#include "T2Mover.h"
#include "T2MoverRoutingTable.h"
#include "T2RoutingTable.h"
+#include "T2RoutingTableElem.h"
#include "T2Tenant.h"
T2RoutingTable::T2RoutingTable(T2FloorInfo* inFloorInfo, T2FloorPtrList* inFloorPtrList, int inWhichTable)
@@ -359,44 +361,3 @@ T2Tenant* T2RoutingTable::SelectNearTenant(T2Tenant* inTenant, int inH, unsigned
return selectedTenant;
}
-
-
-
-T2RoutingTableElem::T2RoutingTableElem() {
- mNextFloorID = 0;
- mScore = 0;
- mTime = 0;
- mFinalHPos = 0;
-}
-
-T2RoutingTableElem::~T2RoutingTableElem() {
-}
-
-BOOL T2RoutingTableElem::IsStopFloor() const {
- return ((mNextFloorID != 0) && (mScore == 0));
-}
-
-void T2RoutingTableElem::SetTable(unsigned int inNextFloorID, int inFinalHPos) {
- mNextFloorID = inNextFloorID;
- mScore = 0;
- mTime = 0;
- mFinalHPos = inFinalHPos;
-}
-
-BOOL T2RoutingTableElem::IsSetTable(unsigned int inNextFloorID, unsigned int inScore, int inTime, int inFinalHPos) {
- BOOL result = false;
-
- if (mNextFloorID == 0 || mScore > inScore) {
- mNextFloorID = inNextFloorID;
- mScore = inScore;
- mTime = inTime;
- mFinalHPos = inFinalHPos;
- result = true;
- }
-
- return result;
-}
-
-BOOL T2RoutingTableElem::HasNextRoute(unsigned int inFloorID) const {
- return (mNextFloorID != 0) && (mNextFloorID != inFloorID);
-}