This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Heroine; | |
enum class Input | |
{ | |
PressDown, | |
ReleaseDown | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Monster | |
{ | |
public: | |
virtual void attack() = 0; | |
}; | |
class Ghost : public Monster | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
enum class Event | |
{ | |
EntityFell, | |
}; | |
class Observer | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
constexpr int WIDTH = 10; | |
constexpr int HEIGHT = 10; | |
class Terrain | |
{ | |
public: | |
Terrain(int moveCost, bool isWater) | |
: m_moveCost(moveCost) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
class Command | |
{ | |
public: | |
virtual ~Command() {} | |
virtual void execute() = 0; | |
}; |
NewerOlder