![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Serves as the primary store of all Peoplemon information. More...
#include <Peoplemon.hpp>
Static Public Member Functions | |
static void | setDataSource (file::PeoplemonDB &data) |
Sets the data source for all peoplemon. Must remain in scope. More... | |
static Id | cast (unsigned int id) |
Casts an integer to a validated id. Returns Unknown if the id is invalid. More... | |
static const std::vector< Id > & | validIds () |
Returtns the list of all valid ids. More... | |
static const std::string & | name (Id id) |
Returns the name of the given Peoplemon. More... | |
static const std::string & | description (Id id) |
Returns the description of the given Peoplemon. More... | |
static Type | type (Id id) |
Returns the type of the Peoplemon. More... | |
static SpecialAbility | specialAbility (Id id) |
Returns the ability of the given peoplemon, if any. More... | |
static const Stats & | baseStats (Id id) |
Returns the base stats for the given peoplemon. More... | |
static bool | canLearnMove (Id ppl, MoveId move) |
Returns whether or not the given Peoplemon can learn the given move. More... | |
static MoveId | moveLearnedAtLevel (Id ppl, unsigned int level) |
Returns the move the peoplemon learns at the given level, if any. More... | |
static unsigned int | evolveLevel (Id id) |
Returns the minimum level that the given peoplemon will evolve at. More... | |
static Id | evolvesInto (Id orig) |
Returns what the given peoplemon will evolve into. More... | |
static Id | evolvesFrom (Id evolved) |
Returns what the given Peoplemon evolved from. This is expensive. More... | |
static const Stats & | evAward (Id id) |
Returns the ev points awarded for defeating the given peoplemon. More... | |
static int | xpYieldMultiplier (Id id) |
Returns the multiplier used when computing the XP award for defeating the given peoplemon. More... | |
static unsigned int | levelUpXp (Id id, unsigned int level) |
Returns the XP required to level up the given peoplemon. More... | |
static std::string | thumbnailImage (Id id) |
Returns the path of the image to render as the peoplemon thumbnail. More... | |
static std::string | playerImage (Id id) |
Returns the full path to the image to use in battle for the player peoplemon. More... | |
static std::string | opponentImage (Id id) |
Returns the full path to the image to use in battle for the opponent peoplemon. More... | |
static float | catchRate (Id id) |
Returns the base catch rate for the given peoplemon. More... | |
static bool | canClone (Id id) |
Returns whether or not the given Peoplemon may be cloned. More... | |
static std::string | ailmentString (Ailment ailment) |
Returns the name of the given ailment as a string. More... | |
static const std::string & | abilityName (SpecialAbility ability) |
Returns the name of the given special ability. More... | |
static const std::string & | abilityDescription (SpecialAbility ability) |
Returns the description of the given special ability. More... | |
Serves as the primary store of all Peoplemon information.
Definition at line 35 of file Peoplemon.hpp.
|
static |
Returns the description of the given special ability.
ability | The ability to get the description of |
Definition at line 268 of file Peoplemon.cpp.
|
static |
Returns the name of the given special ability.
ability | The ability to get the name of |
Definition at line 263 of file Peoplemon.cpp.
|
static |
Returns the name of the given ailment as a string.
ailment | The ailment to get the name of |
Definition at line 244 of file Peoplemon.cpp.
Returns the base stats for the given peoplemon.
id | The peoplemon to get base stats for |
Definition at line 146 of file Peoplemon.cpp.
|
static |
Returns whether or not the given Peoplemon may be cloned.
id | The peoplemon to check |
Definition at line 242 of file Peoplemon.cpp.
Returns whether or not the given Peoplemon can learn the given move.
ppl | The peoplemon trying to learn |
move | The move to be learned |
Definition at line 152 of file Peoplemon.cpp.
|
static |
Casts an integer to a validated id. Returns Unknown if the id is invalid.
id | The id to check |
Definition at line 112 of file Peoplemon.cpp.
|
static |
Returns the base catch rate for the given peoplemon.
id | The peoplemon to get the catch rate for |
Definition at line 237 of file Peoplemon.cpp.
|
static |
Returns the description of the given Peoplemon.
id | The peoplemon to get the description of |
Definition at line 131 of file Peoplemon.cpp.
Returns the ev points awarded for defeating the given peoplemon.
id | The peoplemon that was defeated |
Definition at line 176 of file Peoplemon.cpp.
|
static |
Returns the minimum level that the given peoplemon will evolve at.
id | The peoplemon to check |
Definition at line 166 of file Peoplemon.cpp.
Returns what the given Peoplemon evolved from. This is expensive.
evolved | The peoplemon to work backwards from |
Definition at line 204 of file Peoplemon.cpp.
Returns what the given peoplemon will evolve into.
orig | The peoplemon that is evolving |
Definition at line 171 of file Peoplemon.cpp.
|
static |
Returns the XP required to level up the given peoplemon.
id | The peoplemon trying to level up |
level | The current level of the peoplemon |
Definition at line 187 of file Peoplemon.cpp.
Returns the move the peoplemon learns at the given level, if any.
ppl | The peoplemon that levled up |
level | The level reached |
Definition at line 157 of file Peoplemon.cpp.
|
static |
Returns the name of the given Peoplemon.
id | The peoplemon to get the name of |
Definition at line 126 of file Peoplemon.cpp.
|
static |
Returns the full path to the image to use in battle for the opponent peoplemon.
id | The id of the peoplemon to get the image for |
Definition at line 228 of file Peoplemon.cpp.
|
static |
Returns the full path to the image to use in battle for the player peoplemon.
id | The id of the peoplemon to get the image for |
Definition at line 219 of file Peoplemon.cpp.
|
static |
Sets the data source for all peoplemon. Must remain in scope.
data | The data source. Must remain in scope |
Definition at line 94 of file Peoplemon.cpp.
|
static |
Returns the ability of the given peoplemon, if any.
id | The peoplemon to get the ability for |
Definition at line 141 of file Peoplemon.cpp.
|
static |
Returns the path of the image to render as the peoplemon thumbnail.
id | The id of the peoplemon |
Definition at line 211 of file Peoplemon.cpp.
Returns the type of the Peoplemon.
id | The Peoplemon to get the type of |
Definition at line 136 of file Peoplemon.cpp.
|
static |
Returtns the list of all valid ids.
Definition at line 118 of file Peoplemon.cpp.
|
static |
Returns the multiplier used when computing the XP award for defeating the given peoplemon.
id | The peoplemon that was defeated |
Definition at line 182 of file Peoplemon.cpp.