summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EquipPtrList.h
blob: cccaade78933601ea8ad95bcb0213e645e3efb56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef T2DLL_T2EQUIPPTRLIST_H
#define T2DLL_T2EQUIPPTRLIST_H
#include "../common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2EquipPtrList : public LArray {
public:
	T2EquipPtrList(unsigned int attribute = 0);
	virtual ~T2EquipPtrList();
	void AddItem(T2Equip* equip);
	void RemoveItem(T2Equip* equip);
	void RemoveItem(int index);
	int GetIndex(T2Equip* equip);
	int GetIndex(unsigned int equipID);
	T2Equip* GetItem(int index);
	void SetRelatedTenantID(unsigned int id);

	unsigned int GetAttribute() const { return mAttribute; }

protected:
    unsigned int mAttribute;
};
#endif