![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Provides an inline GUI entry for stats in either EV mode or IV mode. More...
#include <StatBox.hpp>
Public Types | |
enum | Mode { EV , IV } |
Mode the entry is in. More... | |
Public Member Functions | |
StatBox (Mode mode, bool showRandomBut=true) | |
Construct a new Stat Box component. More... | |
core::pplmn::Stats | currentValue () const |
Returns the current Stats value entered. More... | |
void | update (const core::pplmn::Stats &value) |
Updates the GUI elements with the given value. More... | |
void | notifyLevel (unsigned int level) |
Make the statbox aware of the level of the peoplemon it is editing. Used for random EV generation. More... | |
void | reset () |
Resets all stats to 0. More... | |
void | pack (bl::gui::Box &container) |
Packs the GUI elements into the given container. More... | |
Provides an inline GUI entry for stats in either EV mode or IV mode.
Definition at line 17 of file StatBox.hpp.
editor::component::StatBox::StatBox | ( | Mode | mode, |
bool | showRandomBut = true |
||
) |
Construct a new Stat Box component.
mode | EV or IV mode |
Definition at line 35 of file StatBox.cpp.
core::pplmn::Stats editor::component::StatBox::currentValue | ( | ) | const |
Returns the current Stats value entered.
Definition at line 83 of file StatBox.cpp.
void editor::component::StatBox::notifyLevel | ( | unsigned int | level | ) |
Make the statbox aware of the level of the peoplemon it is editing. Used for random EV generation.
level | The current level of the peoplemon being edited |
Definition at line 109 of file StatBox.cpp.
void editor::component::StatBox::pack | ( | bl::gui::Box & | container | ) |
Packs the GUI elements into the given container.
container | The container to pack into |
Definition at line 111 of file StatBox.cpp.
void editor::component::StatBox::reset | ( | ) |
Resets all stats to 0.
Definition at line 74 of file StatBox.cpp.
void editor::component::StatBox::update | ( | const core::pplmn::Stats & | value | ) |
Updates the GUI elements with the given value.
value | The value to set |
Definition at line 94 of file StatBox.cpp.