Peoplemon  0.1.0
Peoplemon 3 game source documentation
State.hpp
Go to the documentation of this file.
1 #ifndef CORE_PLAYER_STATE_HPP
2 #define CORE_PLAYER_STATE_HPP
3 
4 #include <BLIB/Tilemap/Position.hpp>
7 #include <Core/Player/Bag.hpp>
8 #include <Core/Player/Gender.hpp>
11 
12 namespace core
13 {
14 namespace player
15 {
21 struct State {
25  State();
26 
30  void healPeoplemon();
31 
35  bool evolutionPending() const;
36 
40  bool hasLivingPeoplemon() const;
41 
42  std::string name;
45  long monei;
46  std::vector<pplmn::OwnedPeoplemon> peoplemon;
48  std::unordered_set<std::string> visitedTowns;
50 
51  bl::tmap::Position savePos;
52  std::string whiteoutMap;
53  unsigned int whiteoutSpawn;
54  unsigned int repelSteps;
55 };
56 
57 } // namespace player
58 } // namespace core
59 
60 #endif
Gender
Possible genders for the player.
Definition: Gender.hpp:24
Core classes and functionality for both the editor and game.
Basic inventory class for managing player items.
Definition: Bag.hpp:18
Maintains the information required to populate the peopledex.
Definition: Peopledex.hpp:24
Stores all player state.
Definition: State.hpp:21
StorageSystem storage
Definition: State.hpp:47
unsigned int whiteoutSpawn
Definition: State.hpp:53
bool hasLivingPeoplemon() const
Returns whether or not the player has any living peoplemon.
Definition: State.cpp:27
std::vector< pplmn::OwnedPeoplemon > peoplemon
Definition: State.hpp:46
std::string name
Definition: State.hpp:42
State()
Initializes to default values.
Definition: State.cpp:7
void healPeoplemon()
Restores HP and removes all ailments.
Definition: State.cpp:16
std::string whiteoutMap
Definition: State.hpp:52
unsigned int repelSteps
Definition: State.hpp:54
bool evolutionPending() const
Returns whether or not any peoplemon have a pending evolution.
Definition: State.cpp:20
player::Gender sex
Definition: State.hpp:43
Peopledex peopledex
Definition: State.hpp:49
player::Bag bag
Definition: State.hpp:44
std::unordered_set< std::string > visitedTowns
Definition: State.hpp:48
bl::tmap::Position savePos
Definition: State.hpp:51
Peoplemon storage system for extra peoplemon the player has.