Changeset View
Changeset View
Standalone View
Standalone View
KBlocksGameRecorder.h
| Show All 35 Lines | 35 | public: | |||
|---|---|---|---|---|---|
| 36 | void append(int index, int type, int value); | 36 | void append(int index, int type, int value); | ||
| 37 | void save(const char *fileName, bool isBinaryMode = true); | 37 | void save(const char *fileName, bool isBinaryMode = true); | ||
| 38 | 38 | | |||
| 39 | private: | 39 | private: | ||
| 40 | void saveText(FILE *pFile); | 40 | void saveText(FILE *pFile); | ||
| 41 | void saveBinary(FILE *pFile); | 41 | void saveBinary(FILE *pFile); | ||
| 42 | void writeByte(FILE *pFile, int value); | 42 | void writeByte(FILE *pFile, int value); | ||
| 43 | 43 | | |||
| 44 | timeLong getMillisecOfNow(); | | |||
| 45 | | ||||
| 46 | private: | 44 | private: | ||
| 47 | list<_game_record_data> mGameRecord; | 45 | list<_game_record_data> mGameRecord; | ||
| 48 | }; | 46 | }; | ||
| 49 | 47 | | |||
| 50 | #endif | 48 | #endif | ||