![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Maintains the information required to populate the peopledex. More...
#include <Peopledex.hpp>
Public Types | |
enum | IntelLevel { NoIntel , LimitedIntel , FullIntel } |
Represents an intel level on a given peoplemon. More... | |
Public Member Functions | |
Peopledex (State &playerState) | |
Construct a new Peopledex object. More... | |
unsigned int | getSeen (pplmn::Id peoplemon) const |
Returns how many of the given peoplemon have been seen. More... | |
unsigned int | getCaught (pplmn::Id peoplemon) const |
Returns how many of the given peoplemon have been caught. More... | |
const std::string & | getFirstSeenLocation (pplmn::Id peoplemon) const |
Returns the name of the location the given peoplemon was first spotted at. More... | |
IntelLevel | getIntelLevel (pplmn::Id peoplemon) const |
Returns the level of intel on the given peoplemon. More... | |
void | registerSighting (pplmn::Id peoplemon, const std::string &location) |
Registers a sighting of the given peoplemon at the given location. More... | |
Friends | |
class | system::Player |
Maintains the information required to populate the peopledex.
Definition at line 24 of file Peopledex.hpp.
Represents an intel level on a given peoplemon.
Enumerator | |
---|---|
NoIntel | |
LimitedIntel | |
FullIntel |
Definition at line 27 of file Peopledex.hpp.
core::player::Peopledex::Peopledex | ( | State & | playerState | ) |
Construct a new Peopledex object.
playerState | The player state |
Definition at line 9 of file Peopledex.cpp.
unsigned int core::player::Peopledex::getCaught | ( | pplmn::Id | peoplemon | ) | const |
Returns how many of the given peoplemon have been caught.
peoplemon | The peoplemon to search for |
Definition at line 26 of file Peopledex.cpp.
const std::string & core::player::Peopledex::getFirstSeenLocation | ( | pplmn::Id | peoplemon | ) | const |
Returns the name of the location the given peoplemon was first spotted at.
peoplemon | The peoplemon to search |
Definition at line 17 of file Peopledex.cpp.
Peopledex::IntelLevel core::player::Peopledex::getIntelLevel | ( | pplmn::Id | peoplemon | ) | const |
Returns the level of intel on the given peoplemon.
peoplemon | The peoplemon to get the intel level on |
Definition at line 42 of file Peopledex.cpp.
unsigned int core::player::Peopledex::getSeen | ( | pplmn::Id | peoplemon | ) | const |
Returns how many of the given peoplemon have been seen.
peoplemon | The peoplemon to search for |
Definition at line 12 of file Peopledex.cpp.
void core::player::Peopledex::registerSighting | ( | pplmn::Id | peoplemon, |
const std::string & | location | ||
) |
Registers a sighting of the given peoplemon at the given location.
peoplemon | The peoplemon that was seen |
location | Where the peoplemon was seen |
Definition at line 49 of file Peopledex.cpp.
|
friend |
Definition at line 81 of file Peopledex.hpp.