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

Method GetOrigSpriteIndex

src/game_vehicle.cpp:223–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223int Game_Vehicle::GetOrigSpriteIndex() const {
224 if (!data()->orig_sprite_name.empty()) {
225 return data()->orig_sprite_id;
226 }
227 switch (GetVehicleType()) {
228 case Boat:
229 return lcf::Data::system.boat_index;
230 case Ship:
231 return lcf::Data::system.ship_index;
232 case Airship:
233 return lcf::Data::system.airship_index;
234 default:
235 break;
236 }
237 return 0;
238}

Callers 2

testInitVehicleFunction · 0.80
testBasicSetVehicleFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected