summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoverArray.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2MoverArray.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2MoverArray.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/T2DLL/T2MoverArray.h b/src/T2DLL/T2MoverArray.h
index 794f8ee..4018dba 100644
--- a/src/T2DLL/T2MoverArray.h
+++ b/src/T2DLL/T2MoverArray.h
@@ -1,19 +1,25 @@
#pragma once
#include "common.h"
+#include "T2Mover.h"
+#include "T2ObjectArray.h"
-class T2MoverArray {
+class AFX_EXT_CLASS T2MoverArray : public T2ObjectArray {
public:
- T2MoverArray(unsigned int);
+ enum { kGroupSize = 32 };
+
+ T2MoverArray(unsigned int inStartID = 1);
virtual ~T2MoverArray();
+ virtual void DispatchIdle(T2TowerDoc* inDoc, int);
T2Mover* FindUnusedMover();
- void DrawMoverAll(T2TowerDoc*, const RECT&);
- virtual void DispatchIdle(T2TowerDoc*, int);
- int CalcMentenanceCost(T2TowerDoc*) const;
- void Read(T2Archive&, T2TowerDoc*);
- void Write(T2Archive&);
+ void DrawMoverAll(T2TowerDoc* inDoc, const RECT& inRect);
+ int CalcMentenanceCost(T2TowerDoc* inDoc) const;
+ void Read(T2Archive& inArchive, T2TowerDoc* inDoc);
+ void Write(T2Archive& inArchive);
+
+ T2Mover* GetIndexMover(int i) { return &mMover[i]; }
+
+protected:
+ friend class T2MoverArrayList;
- T2Mover* GetIndexMover(int) {}
- T2MoverArray(const T2MoverArray&) {}
- T2MoverArray& operator=(const T2MoverArray&) {}
- void `default constructor closure'() {}
+ T2Mover mMover[kGroupSize];
};