blob: 9e7c40c51ae5ef45a5a3fb8c4b8e81707db48b81 (
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
|
#ifndef T2DLL_T2PEOPLEPTRLIST_H
#define T2DLL_T2PEOPLEPTRLIST_H
#include "../common.h"
#include "LArray.h"
class AFX_CLASS_EXPORT T2PeoplePtrList : public LArray {
public:
T2PeoplePtrList(int count = 0);
virtual ~T2PeoplePtrList();
BOOL Add(T2People* people);
T2People* GetItemAt(int index) const;
BOOL GetPeopleIndex(T2People* people, int& outIndex) const;
BOOL HasSpace() const;
void Clear();
void Clear(T2People* people);
void SetDestination(unsigned int tenantID);
void ChangeDestination(unsigned int tenantID);
void SetReturn(unsigned int tenantID);
void IncStress(int value);
void IncEstimate(int value);
BOOL InSameTenant(unsigned int tenantID) const;
void LoadSelf(T2Archive& archive, T2PeopleArrayList* list);
void SaveSelf(T2Archive& archive) const;
protected:
void Init(unsigned int count);
};
#endif
|