Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::player::State Struct Reference

Stores all player state. More...

#include <State.hpp>

Public Member Functions

 State ()
 Initializes to default values. More...
 
void healPeoplemon ()
 Restores HP and removes all ailments. More...
 
bool evolutionPending () const
 Returns whether or not any peoplemon have a pending evolution. More...
 
bool hasLivingPeoplemon () const
 Returns whether or not the player has any living peoplemon. More...
 

Public Attributes

std::string name
 
player::Gender sex
 
player::Bag bag
 
long monei
 
std::vector< pplmn::OwnedPeoplemonpeoplemon
 
StorageSystem storage
 
std::unordered_set< std::string > visitedTowns
 
Peopledex peopledex
 
bl::tmap::Position savePos
 
std::string whiteoutMap
 
unsigned int whiteoutSpawn
 
unsigned int repelSteps
 

Detailed Description

Stores all player state.

Definition at line 21 of file State.hpp.

Constructor & Destructor Documentation

◆ State()

core::player::State::State ( )

Initializes to default values.

Definition at line 7 of file State.cpp.

Member Function Documentation

◆ evolutionPending()

bool core::player::State::evolutionPending ( ) const

Returns whether or not any peoplemon have a pending evolution.

Definition at line 20 of file State.cpp.

◆ hasLivingPeoplemon()

bool core::player::State::hasLivingPeoplemon ( ) const

Returns whether or not the player has any living peoplemon.

Definition at line 27 of file State.cpp.

◆ healPeoplemon()

void core::player::State::healPeoplemon ( )

Restores HP and removes all ailments.

Definition at line 16 of file State.cpp.

Member Data Documentation

◆ bag

player::Bag core::player::State::bag

Definition at line 44 of file State.hpp.

◆ monei

long core::player::State::monei

Definition at line 45 of file State.hpp.

◆ name

std::string core::player::State::name

Definition at line 42 of file State.hpp.

◆ peopledex

Peopledex core::player::State::peopledex

Definition at line 49 of file State.hpp.

◆ peoplemon

std::vector<pplmn::OwnedPeoplemon> core::player::State::peoplemon

Definition at line 46 of file State.hpp.

◆ repelSteps

unsigned int core::player::State::repelSteps

Definition at line 54 of file State.hpp.

◆ savePos

bl::tmap::Position core::player::State::savePos

Definition at line 51 of file State.hpp.

◆ sex

player::Gender core::player::State::sex

Definition at line 43 of file State.hpp.

◆ storage

StorageSystem core::player::State::storage

Definition at line 47 of file State.hpp.

◆ visitedTowns

std::unordered_set<std::string> core::player::State::visitedTowns

Definition at line 48 of file State.hpp.

◆ whiteoutMap

std::string core::player::State::whiteoutMap

Definition at line 52 of file State.hpp.

◆ whiteoutSpawn

unsigned int core::player::State::whiteoutSpawn

Definition at line 53 of file State.hpp.


The documentation for this struct was generated from the following files: