summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PeoplePtrList.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2PeoplePtrList.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2PeoplePtrList.h29
1 files changed, 29 insertions, 0 deletions
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'() {}
+};