summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ToolDefList.h
blob: 1df9e5aa3e7db458abaac6357f366f85340fa6fe (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
#ifndef T2DLL_T2TOOLDEFLIST_H
#define T2DLL_T2TOOLDEFLIST_H
#include "../common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2ToolDefList : public LArray {
public:
	T2ToolDefList(int inCategory);
	virtual ~T2ToolDefList();
	void AllClear();
	void Regist(T2ToolDef* inToolDef);
	void Add(T2ToolDef* inToolDef);
	unsigned int GetItemCount();
	T2ToolDef* GetItemAt(int inIndex);
	T2TenantDef* FindFloor();
	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;
};
#endif