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

Method GetDisplayX

src/game_map.cpp:1691–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1689}
1690
1691int Game_Map::GetDisplayX() {
1692 return map_info.position_x + Main_Data::game_screen->GetShakeOffsetX() * 16;
1693}
1694
1695void Game_Map::SetPositionX(int x, bool reset_panorama) {
1696 const int map_width = GetTilesX() * SCREEN_TILE_SIZE;

Callers 12

CreateSpriteMethod · 0.45
DrawMethod · 0.45
CreateSpriteMethod · 0.45
DrawMethod · 0.45
DrawMethod · 0.45
CreateSpriteMethod · 0.45
UpdatePositionMethod · 0.45
ApplySpEffectMethod · 0.45
ApplyAtkEffectMethod · 0.45
ApplyDefEffectMethod · 0.45
ApplySpiEffectMethod · 0.45
ApplyAgiEffectMethod · 0.45

Calls 1

GetShakeOffsetXMethod · 0.80

Tested by

no test coverage detected