summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoverRoutingTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2MoverRoutingTable.h')
-rw-r--r--src/T2DLL/T2MoverRoutingTable.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/T2DLL/T2MoverRoutingTable.h b/src/T2DLL/T2MoverRoutingTable.h
index 3621ae9..4ea411a 100644
--- a/src/T2DLL/T2MoverRoutingTable.h
+++ b/src/T2DLL/T2MoverRoutingTable.h
@@ -1,33 +1,33 @@
#pragma once
#include "common.h"
+#include "LArray.h"
-class T2MoverRoutingTable {
+class AFX_EXT_CLASS T2MoverRoutingTable : private LArray {
public:
- T2MoverRoutingTable(T2FloorInfo*, T2FloorPtrList*, T2Mover*);
+ T2MoverRoutingTable(T2FloorInfo* inFloorInfo, T2FloorPtrList* inFloorPtrList, T2Mover* inMover);
virtual ~T2MoverRoutingTable();
- void AddItems(int);
- void RemoveItem(int);
+ void AddItems(int inCount);
+ void RemoveItem(int inIndex);
void ClearData();
- int GetItem(int, T2RoutingTableElem&);
-protected:
- int IsStopFloor(int);
-public:
+ BOOL GetItem(int inIndex, T2RoutingTableElem& outItem);
void SetStopFloor();
- int Update(T2MoverRoutingTable*);
-protected:
- int IsUpdate(const T2MoverRoutingTable*, unsigned int, unsigned int, T2RoutingTableElem&);
- int IsSetTable(unsigned int, unsigned int, unsigned int, int, int);
- int CalcHScore(int);
-public:
- int IsConnectRoute(int);
- int GetNextRoute(POINT, unsigned int, POINT&, unsigned int, unsigned int&);
+ BOOL Update(T2MoverRoutingTable* inTable);
+ BOOL IsConnectRoute(int inFloorID);
+ BOOL GetNextRoute(POINT inPt, unsigned int inFloorID, POINT& ioPt, unsigned int inFloorID2, unsigned int& outScore);
+ T2Tenant* SelectNearFloor(POINT inPt, int& outFinalHPos, unsigned int& ioScore);
+
+ T2Mover* GetMover() const { return mMover; }
+ int GetMoverHPos() const { return mMoverHPos; }
+
protected:
- unsigned int CalcScore(POINT, POINT&, T2RoutingTableElem*);
-public:
- T2Tenant* SelectNearFloor(POINT, int&, unsigned int&);
+ BOOL IsStopFloor(int inIndex);
+ BOOL IsUpdate(const T2MoverRoutingTable* inTable, unsigned int inNextFloorID, unsigned int inPrevFloorID, T2RoutingTableElem& inElem);
+ BOOL IsSetTable(unsigned int inPrevFloorID, unsigned int inNextFloorID, unsigned int inScore, int inTime, int inFinalHPos);
+ int CalcHScore(int inDistance);
+ unsigned int CalcScore(POINT inPt, POINT& ioPt, T2RoutingTableElem* inElem);
- T2MoverRoutingTable(const T2MoverRoutingTable&) {}
- T2MoverRoutingTable& operator=(const T2MoverRoutingTable&) {}
- T2Mover* GetMover() const {}
- int GetMoverHPos() const {}
+ T2Mover *mMover;
+ int mMoverHPos;
+ T2FloorPtrList *mFloorPtrList;
+ T2FloorInfo *mFloorInfo;
};