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

Method Draw

src/sprite_weapon.cpp:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void Sprite_Weapon::Draw(Bitmap& dst) {
132 if (!attacking) {
133 return;
134 }
135
136 SetTone(Main_Data::game_screen->GetTone());
137 if (!ranged) {
138 SetX(battler->GetDisplayX());
139 SetY(battler->GetDisplayY());
140 }
141 SetFlashEffect(battler->GetFlashColor());
142
143 Sprite::Draw(dst);
144}

Callers

nothing calls this directly

Calls 4

GetToneMethod · 0.45
GetDisplayXMethod · 0.45
GetDisplayYMethod · 0.45
GetFlashColorMethod · 0.45

Tested by

no test coverage detected