![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
This system manages trainers. It handles their vision and makes them walk up to the player. More...
#include <Trainers.hpp>
Public Member Functions | |
Trainers (Systems &owner) | |
Construct a new Trainers system. More... | |
virtual | ~Trainers ()=default |
Destroys the system. More... | |
bl::ecs::Entity | approachingTrainer () const |
Returns the trainer currently approaching the player. More... | |
void | resetDefeated () |
Resets the list of defeated trainers. More... | |
bool | trainerDefeated (const component::Trainer &trainer) const |
Checks whether or not the given trainer has been defeated. More... | |
void | setDefeated (component::Trainer &trainer) |
Sets the given trainer as having been defeated and updates the game save data. More... | |
This system manages trainers. It handles their vision and makes them walk up to the player.
Definition at line 28 of file Trainers.hpp.
core::system::Trainers::Trainers | ( | Systems & | owner | ) |
Construct a new Trainers system.
owner | The main game systems |
Definition at line 21 of file Trainers.cpp.
|
virtualdefault |
Destroys the system.
bl::ecs::Entity core::system::Trainers::approachingTrainer | ( | ) | const |
Returns the trainer currently approaching the player.
Definition at line 105 of file Trainers.cpp.
void core::system::Trainers::resetDefeated | ( | ) |
Resets the list of defeated trainers.
Definition at line 200 of file Trainers.cpp.
void core::system::Trainers::setDefeated | ( | component::Trainer & | trainer | ) |
Sets the given trainer as having been defeated and updates the game save data.
trainer | The trainer to mark defeated |
Definition at line 111 of file Trainers.cpp.
bool core::system::Trainers::trainerDefeated | ( | const component::Trainer & | trainer | ) | const |
Checks whether or not the given trainer has been defeated.
trainer | The trainer to test |
Definition at line 107 of file Trainers.cpp.