summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2RequestArray.h
blob: 3a6e6528d319ad9a8551c93ee4967ec04937c22a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "common.h"
#include "T2ObjectArray.h"
#include "T2Request.h"

class AFX_CLASS_EXPORT T2RequestArray : public T2ObjectArray {
public:
	T2RequestArray(unsigned int startID = 1000);
	virtual ~T2RequestArray();
    virtual void DispatchIdle(T2TowerDoc*, int);
	T2Request* FindUnusedRequest();
	void BreakoutEmergency(T2TowerDoc*);
	void Read(T2Archive&, T2TowerDoc*);
	void Write(T2Archive&);

	T2Request* GetIndexRequest(int i) { return &mRequests[i]; }

protected:
    T2Request mRequests[64];
};