diff options
Diffstat (limited to 'src/T2DLL/T2MoverModuleTable.h')
-rw-r--r-- | src/T2DLL/T2MoverModuleTable.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/T2DLL/T2MoverModuleTable.h b/src/T2DLL/T2MoverModuleTable.h new file mode 100644 index 0000000..d45c08c --- /dev/null +++ b/src/T2DLL/T2MoverModuleTable.h @@ -0,0 +1,43 @@ +#pragma once +#include "common.h" +#include "T2DlgItemImageTable.h" + +struct HomeNotification { + T2ElevatorModule *theModule; + int whichMover; + int whichFloor; + T2MoverModuleTable *theTable; +}; + +class AFX_EXT_CLASS T2MoverModuleTable : public T2DlgItemImageTable { +public: + T2MoverModuleTable(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); + virtual ~T2MoverModuleTable(); + virtual BOOL Create(const char* inWindowName, DWORD inStyle, const RECT& inRect, CWnd* inParentWnd, UINT inID); + virtual void SpendTime(); + virtual void ListenToMessage(UINT inMessage, void *ioData); + void SetMover(T2Mover* inMover); + void RefreshMoverCell(int inFloor, unsigned int inIndex); + void DrawMoverCellByIndex(unsigned int inIndex); + +protected: + virtual BOOL OnCommand(WPARAM inWParam, LPARAM inLParam); + virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); + virtual void OnT2DlgItemLButtonDown(UINT inFlags, CPoint inPt); + virtual void OnT2DlgItemLButtonUp(UINT inFlags, CPoint inPt) {} + virtual void OnT2DlgItemMouseMove(UINT inFlags, CPoint inPt) {} + virtual BOOL OnT2DlgItemCreate(CREATESTRUCT* inCreateStruct); + virtual void ClickCell(const TableCellT& inCell, const POINT& inPt); + virtual void DrawCellSelf(CDC* pDC, const TableCellT& inCell, BOOL inSelected); + + friend class T2FloorNumberTable; + + T2ElevatorModule* GetModule(int inIndex); + int GetCellContent(const TableCellT& inCell); + int GetVScrValue(); + + T2Mover *mMover; + T2MoverModuleList *mMoverModuleList; + T2BitImage *mImage; + RECT mRect; +}; |