]> git.mxchange.org Git - quix0rs-blobwars.git/blob - src/CReplayData.h
Use time_t to store time data.
[quix0rs-blobwars.git] / src / CReplayData.h
1 class ReplayData
2 {
3         private:
4         
5                 static const int DATA_LENGTH = 650;
6         
7                 FILE *fp;
8                 int index;
9                 char data[DATA_LENGTH][CONTROL::MAX];
10                 
11                 bool endOfReplay;
12
13         public:
14         
15                         bool fast;
16         
17                         char filename[PATH_MAX];
18         
19                         REPLAY_MODE::TYPE replayMode;
20                         ReplayDataHeader header;
21         
22                 ReplayData();
23                 ~ReplayData();
24                 
25                 void setMode(REPLAY_MODE::TYPE replayMode);
26                 void printReplayInformation();
27                 
28                 void swapHeaderEndians();
29                 
30                 void read(int *c);
31                 void set(int *c);
32                 
33                 void load();
34                 void save();
35                 void commit();
36                 
37                 void reset();
38 };