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

Method ResetPan

src/game_player.cpp:853–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853void Game_Player::ResetPan(int speed) {
854 data()->pan_finish_x = GetDefaultPanX();
855 data()->pan_finish_y = GetDefaultPanY();
856 data()->pan_speed = 2 << speed;
857
858 if (Player::IsPatchManiac()) {
859 // Maniac uses separate horizontal/vertical pan for everything
860 data()->maniac_horizontal_pan_speed = data()->pan_speed;
861 data()->maniac_vertical_pan_speed = data()->pan_speed;
862 }
863}
864
865int Game_Player::GetPanWait() {
866 bool is_maniac = Player::IsPatchManiac();

Callers 4

CommandPanScreenMethod · 0.80
testAnimPanFunction · 0.80
testAnimBlockedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected