-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaveMod.h
27 lines (21 loc) · 832 Bytes
/
saveMod.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include "SimpleMode.h"
#include "TestFailed.h"
class SaveMode : public SimpleMode
{
private:
//-----------------------------------------Data Members----------------------------------------------//
string resName;
string stepsName;
bool tempHoldGhost;
//-----------------------------------Private Member Functions-----------------------------------------//
void writeCreaturesSteps();
const string findDirection(const Creature& creature) const;
virtual int finishGame() override;
virtual bool has_Collision() override;
virtual void move() override;
virtual void init(bool start_screen, bool start_game) override;
public:
//-----------------------------------Public Member Functions-----------------------------------------//
SaveMode(): tempHoldGhost(getHoldGhost()){}
};