diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2ToolDefList.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2ToolDefList.h | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/src/T2DLL/T2ToolDefList.h b/src/T2DLL/T2ToolDefList.h index ab9d885..faa8bf3 100644 --- a/src/T2DLL/T2ToolDefList.h +++ b/src/T2DLL/T2ToolDefList.h @@ -1,35 +1,39 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2ToolDefDB { +class AFX_EXT_CLASS T2ToolDefDB : public LArray { public: - T2ToolDefDB(const T2ToolDefDB&); - T2ToolDefDB& operator=(const T2ToolDefDB&); T2ToolDefDB(); virtual ~T2ToolDefDB(); void AllClear(); - void Regist(T2ToolDef*); - void Add(T2ToolDefList*); - T2ToolDefList* GetToolDefList(int); + void Regist(T2ToolDef* inToolDef); + void Add(T2ToolDefList* inToolDefList); + T2ToolDefList* GetToolDefList(int inCategory); T2TenantDef* FindFloor(); }; -class T2ToolDefList { + +class AFX_EXT_CLASS T2ToolDefList : public LArray { public: - int GetCategory(); - int GetCurrentItem(); - void SetCurrentItem(int); - int GetCurrentVariant(); - void SetCurrentVariant(int); - T2ToolDefList(const T2ToolDefList&); - T2ToolDefList& operator=(const T2ToolDefList&); - T2ToolDefList(int); + T2ToolDefList(int inCategory); virtual ~T2ToolDefList(); void AllClear(); - void Regist(T2ToolDef*); - void Add(T2ToolDef*); + void Regist(T2ToolDef* inToolDef); + void Add(T2ToolDef* inToolDef); unsigned int GetItemCount(); - T2ToolDef* GetItemAt(int); + T2ToolDef* GetItemAt(int inIndex); T2TenantDef* FindFloor(); - T2TenantDef* FindTenantDef(int); - T2MoverDef* FindMoverDef(int); + T2TenantDef* FindTenantDef(int inToolType); + T2MoverDef* FindMoverDef(int inToolType); + + int GetCategory() { return mCategory; } + int GetCurrentItem() { return mCurrentItem; } + void SetCurrentItem(int inItem) { mCurrentItem = inItem; } + int GetCurrentVariant() { return mCurrentVariant; } + void SetCurrentVariant(int inVariant) { mCurrentVariant = inVariant; } + +protected: + int mCategory; + int mCurrentItem; + int mCurrentVariant; }; |