-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoadMode.h
38 lines (30 loc) · 1.26 KB
/
LoadMode.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
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "SilentMode.h"
#include "SimpleMode.h"
#include "UserInterface.h"
class LoadMode : public SilentMode, public SimpleMode
{
protected:
//-----------------------------------Protected Member Functions-----------------------------------------//
virtual void init(bool start_screen, bool start_game) override { SilentMode::init(start_screen, start_game); }
virtual void move() override;
virtual bool has_Collision() override;
virtual int finishGame() override {return SimpleMode::finishGame();}
//handle ghost
virtual void moveGhosts() override { SilentMode::moveGhosts(); }
//handle player input
virtual void getInputs() override { SilentMode::getInputs(); }
//handle fruit
virtual bool startFruit(char& value, Point& initP) override { return SilentMode::startFruit(value, initP); }
virtual bool eraseFruit() override { return SilentMode::eraseFruit(); }
virtual const Point& getFruitNextStep() override { return SilentMode::getFruitNextStep(); }
public:
//-----------------------------------Public Member Functions-----------------------------------------//
LoadMode()
{
RunMode::setSpeed(SimpleMode::FAST);
setInput(false);
setLevel(true);
}
virtual void Game() override { SilentMode::Game(); }
};