MCPcopy Create free account
hub / github.com/EasyRPG/Player / DrawActorState

Method DrawActorState

src/window_base.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void Window_Base::DrawActorState(const Game_Battler& actor, int cx, int cy) const {
139 // Unit has Normal state if no state is set
140 const lcf::rpg::State* state = actor.GetSignificantState();
141 if (!state) {
142 contents->TextDraw(cx, cy, Font::ColorDefault, lcf::Data::terms.normal_status);
143 } else {
144 contents->TextDraw(cx, cy, state->color, state->name);
145 }
146}
147
148void Window_Base::DrawActorExp(const Game_Actor& actor, int cx, int cy) const {
149 // Draw EXP-String

Callers

nothing calls this directly

Calls 2

GetSignificantStateMethod · 0.80
TextDrawMethod · 0.80

Tested by

no test coverage detected