Arcade architecture
arcade_snake.hpp
1
11#ifndef arcadeSnake_HPP
12#define arcadeSnake_HPP
13
14#include "IGameModule.hpp"
15#include <string>
16
24class arcadeSnake : public IGameModule {
25 std::string _libName = "Arcade Snake";
26
35 std::size_t getHighScore() const override {return 0;};
36
42 std::size_t getScore() const override {return 0;};
43
50 void setScore(std::size_t score) override {};
51
59 void setHighScore(std::size_t highScore) override {};
60
70 std::vector<std::shared_ptr<IEntity>> getEntities() const override {return std::vector<std::shared_ptr<IEntity>>{};};
71
72public:
79
86};
87
88#endif // arcadeSnake_HPP
Interface for game modules in the arcade project.
Interface for game modules.
Definition: IGameModule.hpp:28
A class that implements the IGameModule interface.
Definition: arcade_snake.hpp:24
std::size_t getScore() const override
Retrieves the current score of the game.
Definition: arcade_snake.hpp:42
~arcadeSnake()
Destructor for the arcadeSnake class.
Definition: arcade_snake.cpp:12
std::string _libName
The name of the library.
Definition: arcade_snake.hpp:25
void setScore(std::size_t score) override
Sets the score for the game.
Definition: arcade_snake.hpp:50
void setHighScore(std::size_t highScore) override
Sets the high score for the game.
Definition: arcade_snake.hpp:59
arcadeSnake()
Constructor for the arcadeSnake class.
Definition: arcade_snake.cpp:9
std::vector< std::shared_ptr< IEntity > > getEntities() const override
Retrieves a list of entities managed by the class.
Definition: arcade_snake.hpp:70
std::size_t getHighScore() const override
Retrieves the high score for the game.
Definition: arcade_snake.hpp:35