|
static Id | cast (unsigned int id) |
| Helper function to cast a raw id to an item Id. More...
|
|
static void | setDataSource (file::ItemDB &source) |
| Set the data source for the item methods. More...
|
|
static Category | getCategory (Id item) |
| Returns the category of the given item. More...
|
|
static Type | getType (Id item) |
| Returns the type of the given item. More...
|
|
static const std::string & | getName (item::Id item) |
| Returns the name of the given item. More...
|
|
static const std::string & | getDescription (item::Id item) |
| Returns the description of the given item. More...
|
|
static int | getValue (item::Id item) |
| Returns the value of the given item. More...
|
|
static const std::vector< Id > & | validIds () |
| Returns the list of valid item ids. More...
|
|
static bool | canUseInBattle (Id item) |
| Returns whether or not the item can be used in battle. More...
|
|
static bool | hasEffectOnPeoplemon (Id item, const pplmn::OwnedPeoplemon &ppl) |
| Returns whether or not the given item will affect the peoplemon. More...
|
|
static bool | hasEffectOnPeoplemon (Id item, const pplmn::BattlePeoplemon &ppl, const battle::Battler &battler) |
| Returns whether or not the given item will affect the peoplemon in battle. More...
|
|
static void | useOnPeoplemon (Id item, pplmn::OwnedPeoplemon &ppl, std::vector< pplmn::OwnedPeoplemon > *team=nullptr, std::vector< pplmn::BattlePeoplemon > *battleTeam=nullptr) |
| Applies the given item to the peoplemon. More...
|
|
static void | useOnPeoplemon (Id item, pplmn::BattlePeoplemon &ppl, battle::Battler &battler) |
| Applies the given item to the peoplemon. More...
|
|
static std::string | getUseLine (Id item, const pplmn::OwnedPeoplemon &ppl) |
| Returns the text to display when the item is used on the given peoplemon. More...
|
|
static bool | hasEffectOnPlayer (Id item, const player::State &state) |
| Returns whether or not the given item will affect the player. More...
|
|
static void | useOnPlayer (Id item, player::State &state) |
| Uses the given item on the player. More...
|
|
static std::string | getUseLine (Id item) |
| Generates the text to print when the item is used on the player. More...
|
|
static pplmn::MoveId | getTmMove (Id tm) |
| Returns the move taught by the TM. More...
|
|
static float | getPeopleballRate (Id ball, pplmn::Id ppl, int turnNumber, float levelRatio) |
| Returns the catch rate for the given peopleball. More...
|
|
Collection of static methods centered around items.
Definition at line 25 of file Item.hpp.