47 mCharacterPointsLabel(
new Label(this,
"C"))
59 FOR_EACH (STD_VECTOR<BasicStat>::const_iterator, it, basicStats)
87 const Attrs::const_iterator it =
mAttrs.find(
id);
88 if (it !=
mAttrs.end() && (it->second !=
nullptr))
97 PRAGMA45(GCC diagnostic ignored
"-Wswitch-enum")
103 _(
"Character points: %d"),
CAST_S32(newVal)));
107 for (Attrs::const_iterator it =
mAttrs.begin();
110 if (it->second !=
nullptr)
111 it->second->update();
117 for (Attrs::const_iterator it =
mAttrs.begin();
120 if (it->second !=
nullptr)
121 it->second->update();
129 const Attrs::const_iterator it =
mAttrs.find(
id);
130 if (it !=
mAttrs.end() && (it->second !=
nullptr))
131 it->second->update();
137 const Attrs::const_iterator it =
mAttrs.find(
id);
149 Attrs::const_iterator it =
mAttrs.begin();
150 const Attrs::const_iterator it_end =
mAttrs.end();
Attributes ::T AttributesT
virtual Type getType() const
virtual std::string update()
const std::string & getShortName() const
std::string getValue() const
virtual void add(Widget *const widget)
void setCaption(const std::string &caption)
VertContainer * mAttrCont
Label * mCharacterPointsLabel
void setPointsNeeded(const AttributesT id, const int needed)
StatsPageBasic(const Widget2 *const widget)
std::string getStatsStr() const
void widgetResized(const Event &event)
void attributeChanged(const AttributesT id, const int64_t oldVal, const int64_t newVal)
void statChanged(const AttributesT id, const int oldVal1, const int oldVal2)
void add2(Widget *const widget, const bool resizable, const int spacing)
void add1(Widget *const widget, const int spacing)
#define FOR_EACH(type, iter, array)
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class TestMain
int32_t getAttribute(const AttributesT id)
const std::vector< BasicStat > & getBasicStats()
std::string strprintf(const char *const format,...)