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

Method CreateSprite

src/sprite_weapon.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void Sprite_Weapon::CreateSprite() {
118 SetX(battler->GetDisplayX());
119 SetY(battler->GetDisplayY());
120
121 SetOx(32);
122 SetOy(32);
123}
124
125void Sprite_Weapon::OnBattleWeaponReady(FileRequestResult* result, int32_t weapon_index) {
126 SetBitmap(Cache::Battleweapon(result->file));

Callers

nothing calls this directly

Calls 2

GetDisplayXMethod · 0.45
GetDisplayYMethod · 0.45

Tested by

no test coverage detected