summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2RoutingTableElem.h
blob: 376a1f6591fa1d31d2a12284daa87b553a76ea20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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); }