summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2RequestArray.h
blob: 12ad6117687230c702e4d585fd135edc7695c1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef T2DLL_T2REQUESTARRAY_H
#define T2DLL_T2REQUESTARRAY_H
#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];
};
#endif