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

Method CreateSprite

src/sprite_actor.cpp:227–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void Sprite_Actor::CreateSprite() {
228 auto* battler = GetBattler();
229
230 images = {{battler->GetDisplayX(), battler->GetDisplayY()}};
231
232 SetX(images.back().x);
233 SetY(images.back().y);
234
235 // Not animated -> Monster
236 SetOx(24);
237 SetOy(24);
238 ResetZ();
239 SetAnimationState(anim_state);
240 idling = true;
241}
242
243void Sprite_Actor::DoIdleAnimation() {
244 auto* battler = GetBattler();

Callers

nothing calls this directly

Calls 2

GetDisplayXMethod · 0.45
GetDisplayYMethod · 0.45

Tested by

no test coverage detected