From 37e364b2c6cc7487a1c888d256a73e5337bb7189 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Jun 2023 00:50:34 +0100 Subject: initial commit --- src/T2DLL/T2PeoplePtrList.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/T2DLL/T2PeoplePtrList.h (limited to 'src/T2DLL/T2PeoplePtrList.h') diff --git a/src/T2DLL/T2PeoplePtrList.h b/src/T2DLL/T2PeoplePtrList.h new file mode 100644 index 0000000..8738224 --- /dev/null +++ b/src/T2DLL/T2PeoplePtrList.h @@ -0,0 +1,29 @@ +#pragma once +#include "common.h" + +class T2PeoplePtrList { +public: + T2PeoplePtrList(int); + virtual ~T2PeoplePtrList(); +protected: + void Init(unsigned int); +public: + int Add(T2People*); + T2People* GetItemAt(int) const; + int GetPeopleIndex(T2People*, int&) const; + int HasSpace() const; + void Clear(); + void Clear(T2People*); + void SetDestination(unsigned int); + void ChangeDestination(unsigned int); + void SetReturn(unsigned int); + void IncStress(int); + void IncEstimate(int); + int InSameTenant(unsigned int) const; + void LoadSelf(T2Archive&, T2PeopleArrayList*); + void SaveSelf(T2Archive&) const; + + T2PeoplePtrList(const T2PeoplePtrList&) {} + T2PeoplePtrList& operator=(const T2PeoplePtrList&) {} + void `default constructor closure'() {} +}; -- cgit v1.2.3