Class: Game_Player
- Inherits:
-
Game_Character
- Object
- Game_Character
- Game_Player
- Defined in:
- docs/01450_Systems_00003_Map_Engine.rb
Overview
Management of the player displacement on the Map
Constant Summary collapse
- CENTER_X =
4 time the x position of the Game_Player sprite
Configs.display.tilemap_settings.center.x
- CENTER_Y =
4 time the y position of the Game_Player sprite
Configs.display.tilemap_settings.center.y
- BUMP_FILE =
Name of the bump sound when the player hit a wall
'audio/se/bump'
- SURF_OFFSET_Y =
Offset Screen Y of the surf sprite when surfing
[2, 2, 0, 0, 0, -2, -2, 0, 0, 0]
- AccroTag =
Tags that are Bike bridge (jumpable on Acro Bike)
[AcroBikeRL, AcroBikeUD]
- NO_BIKE_TILE =
Tags where the Bike cannot pass
[SwampBorder, DeepSwamp, TTallGrass]
- DIVE_TILE =
Tile tha allow to use DIVE
[TSea, TUnderWater]
- JumpTags =
List of system tags that makes the player Jump
[JumpL, JumpR, JumpU, JumpD]
- STATE_APPEARANCE_SUFFIX =
Returns List of appearence suffix according to the state.
{cycling: '_cycle_roll', cycle_stop: '_cycle_stop', roll_to_wheel: '_cycle_roll_to_wheel', wheeling: '_cycle_wheel', fishing: '_fish', surf_fishing: '_surf_fish', saving: '_pokecenter', using_skill: '_pokecenter', giving_pokemon: '_pokecenter', taking_pokemon: '_pokecenter', running: '_run', walking: '_walk', surfing: '_surf', swamp: '_swamp', swamp_running: '_swamp_run', sinking: '_deep_swamp_sinking'}
- STATE_MOVEMENT_INFO =
Returns List of movement speed, movement frequency according to the state.
{walking: [3, 4], running: [4, 4], wheeling: [4, 4], cycling: [5, 4], surfing: [4, 4]}
- FALLING_HOLES =
Returns list of falling hole info.
{7 => [7, 0, 35]}
Constants inherited from Game_Character
Game_Character::EMPTY_MOVE_ROUTE, Game_Character::PARTICLES_METHODS, Game_Character::SAND_PARTICLE_NAME, Game_Character::SHADOW_DISABLED_UPDATE_VALUES, Game_Character::SNOW_PARTICLE_NAME, Game_Character::SlideTags, Game_Character::StairsTag, Game_Character::SurfLTag, Game_Character::SurfTag
Constants included from GameData::SystemTags
GameData::SystemTags::AcroBike, GameData::SystemTags::AcroBikeRL, GameData::SystemTags::AcroBikeUD, GameData::SystemTags::BridgeRL, GameData::SystemTags::BridgeUD, GameData::SystemTags::CrackedSoil, GameData::SystemTags::DeepSwamp, GameData::SystemTags::Empty, GameData::SystemTags::HeadButt, GameData::SystemTags::Hole, GameData::SystemTags::JumpD, GameData::SystemTags::JumpL, GameData::SystemTags::JumpR, GameData::SystemTags::JumpU, GameData::SystemTags::MachBike, GameData::SystemTags::Puddle, GameData::SystemTags::RapidsD, GameData::SystemTags::RapidsL, GameData::SystemTags::RapidsR, GameData::SystemTags::RapidsU, GameData::SystemTags::Road, GameData::SystemTags::RocketD, GameData::SystemTags::RocketL, GameData::SystemTags::RocketR, GameData::SystemTags::RocketRD, GameData::SystemTags::RocketRL, GameData::SystemTags::RocketRR, GameData::SystemTags::RocketRU, GameData::SystemTags::RocketU, GameData::SystemTags::SlopesL, GameData::SystemTags::SlopesR, GameData::SystemTags::StairsD, GameData::SystemTags::StairsL, GameData::SystemTags::StairsR, GameData::SystemTags::StairsU, GameData::SystemTags::StopSlide, GameData::SystemTags::SwampBorder, GameData::SystemTags::TCave, GameData::SystemTags::TGrass, GameData::SystemTags::TIce, GameData::SystemTags::TMount, GameData::SystemTags::TPond, GameData::SystemTags::TSand, GameData::SystemTags::TSea, GameData::SystemTags::TSnow, GameData::SystemTags::TTallGrass, GameData::SystemTags::TUnderWater, GameData::SystemTags::TWetSand, GameData::SystemTags::WaterFall, GameData::SystemTags::Whirlpool, GameData::SystemTags::ZTag
Instance Attribute Summary collapse
-
#acro_appearence ⇒ Boolean
true if the player is on the back wheel of its Acro bike.
-
#charset_base ⇒ String?
readonly
Return the charset_base used to calculate the graphic.
-
#on_acro_bike ⇒ Boolean
Indicate if the player is on acro bike.
-
#update_callback ⇒ Symbol?
readonly
The update_callback.
Attributes inherited from Game_Character
#__bridge, #animation_id, #blend_type, #can_make_footprint, #character_hue, #character_name, #charset_animation, #direction, #direction_fix, #follower, #id, #in_swamp, #is_pokemon, #move_route, #move_route_forcing, #move_route_index, #move_speed, #no_slide, #offset_screen_x, #offset_screen_y, #offset_shadow_screen_x, #offset_shadow_screen_y, #opacity, #particles_disabled, #path, #pattern, #real_x, #real_y, #reflection_enabled, #shadow_disabled, #sliding, #step_anime, #surfing, #through, #tile_id, #transparent, #x, #y, #z
Instance Method Summary collapse
-
#acro_passable_check(d, result)
Test if the player can pass Bike bridge.
-
#bridge_down_check(z)
(also: #bridge_up_check)
Same as Game_Character but with Acro bike.
-
#bridge_left_check(z)
(also: #bridge_right_check)
Same as Game_Character but with Acro bike.
-
#calibrate_acro_direction(last_dir)
Reset the direction of the player when he’s on bike bridge.
-
#center(x, y)
Adjust the map display according to the given position.
-
#change_z_with_follower(value)
Set the player z and all its follower z at the same tile.
-
#chara_by_state ⇒ String
Get the character suffix from the hash.
-
#check_common_event_trigger_there(new_x, new_y, z, d)
Check the common event call.
-
#check_event_trigger_here(triggers) ⇒ Boolean
Check if there’s an event trigger on the tile where the player stands.
-
#check_event_trigger_there(triggers) ⇒ Boolean
Check if there’s an event trigger in front of the player (when he presses A).
-
#check_event_trigger_touch(x, y)
Check if the player touch an event and start it if so.
-
#check_follower_trigger_there(new_x, new_y) ⇒ Boolean
Check the follower common event call.
-
#cycling? ⇒ Boolean
Test if the player is cycling.
-
#detect_deep_swamp_sinking(last_in_swamp)
Detect if we should trigger the deep_swamp sinking when we detect swamp info.
-
#detect_swamp
Detect the swamp state.
-
#detect_swamp_entering(last_in_swamp)
Detect if we are entering in the swamp, then update the state.
-
#detect_swamp_leaving(last_in_swamp)
Detect if we are leaving the swamp, then update the state.
-
#enter_in_acro_bike_state
Jump on the acro bike.
-
#enter_in_cycling_state
Jump on the mach bike.
-
#enter_in_fishing_state
Enter in fishing state.
-
#enter_in_giving_pokemon_state
Enter in giving_pokemon state.
-
#enter_in_running_state
Enter in running state (supports the swamp state).
-
#enter_in_saving_state
Enter in saving state.
-
#enter_in_sinking_state
Enter in sinking state.
-
#enter_in_surfing_state
Enter in surfing state.
-
#enter_in_taking_pokemon_state
Enter in taking_pokemon state.
-
#enter_in_using_skill_state
Enter in using_skill state.
-
#enter_in_walking_state ⇒ :walking
Enter in walking state (supports the swamp state).
-
#enter_in_wheel_state
Enter in the wheel state.
-
#event_passable_check?(new_x, new_y, z, game_map) ⇒ Boolean
Check the passage related to events.
-
#falling_hole_warp
Function that makes the player warp based on hole data for each map.
-
#follower_tail ⇒ Game_Character, self
Return the tail of the following queue (Game_Event exclusive).
-
#increase_steps
Increases a step and displays related things.
-
#initialize ⇒ Game_Player
constructor
Default initializer.
-
#leave_cycling_state
(also: #leave_acro_bike_state)
Leave the cycling state.
-
#leave_fishing_state
Leave fishing state.
-
#leave_sinking_state
Leave sinking state.
-
#leave_surfing_state
Leave the surfing state.
-
#leave_wheel_state
Leave the wheel state.
-
#moveto(x, y)
Warp the player to a specific position.
-
#moveto_system_tag_manage
Manage the system_tag part of the moveto method.
-
#particle_push_sand
Push the sand particle only if the player is not cycling.
-
#passable?(x, y, d) ⇒ Boolean
is the tile in front of the player passable ? / Plays a BUMP SE in some conditions.
-
#passage_surf_check?(sys_tag) ⇒ Boolean
Check the surf related passabilities.
-
#player_move
Move the player.
-
#player_move_on_cracked_floor_update
Update the cracked floor when the player move on it.
-
#player_turn(swamp_detect)
Turn the player on himself.
-
#player_update_move
Move or turn the player according to its input.
-
#player_update_move_bump(bool)
Manage the bump part of the player_update_move.
-
#player_update_move_bump_restore_step_anime
Restore step anime if it was changed.
-
#player_update_move_common_events(bool)
Manage the common event calling of player_update_move.
-
#player_update_move_running_state(bool)
Manage the running update of player_update_move inside player_update_move_common_events.
-
#process_slope_y_modifier(y_modifier)
Process the slope y modifier with scrolling handling.
-
#refresh
Refresh the player graphics.
-
#reset_follower
Reset the follower stack to prevent any issue.
-
#return_to_previous_state
Return to the correct state.
-
#screen_y ⇒ Integer
Overwrite the screen_y to add the surfing animation.
-
#search_item
Search an invisible item.
-
#set_appearance_set(charset_base)
Change the appearance set for the player.
-
#set_follower(follower, force = false)
Define the follower of the player, if the player already has event following him, it’ll put them at the tail of the following events.
-
#update
Update the player movements according to inputs.
-
#update_4_step_animation(factor = 1)
Callback called when we only want the character to show it’s 4 pattern (it’ll lock the player, use return_to_previous_state to unlock).
-
#update_4_step_animation_to_previous(factor = 1)
Callback called when we only want the character to show it’s 4 pattern and return to previous state.
-
#update_acro_bike(count, sys_tag) ⇒ Boolean?
Update the Acro Bike jump info.
-
#update_acro_bike_turn(sys_tag) ⇒ Boolean?
Update the Acro Bike jump info when not moving.
-
#update_appearance(forced_pattern = 0)
Launch the player update appearance.
-
#update_cycling_state
Update the cycling state.
-
#update_enter_fishing_state
Callback called when we are entering in wheel state.
-
#update_enter_sinking_state
Callback called when we are entering in wheel state.
-
#update_enter_wheel_state
Callback called when we are entering in wheel state.
-
#update_giving_pokemon_state
Update the Pokemon giving animation.
-
#update_leave_fishing_state
Callback called when we are leaving in wheel state.
-
#update_leave_sinking_state
Callback called when we are leaving in wheel state.
-
#update_leave_wheel_state
Callback called when we are leaving in wheel state.
-
#update_locked_state
Update the locked state.
-
#update_move_parameter(state)
Update the move_speed & move_frequency parameters.
-
#update_taking_pokemon_state
Update the Pokemon taking animation.
Methods inherited from Game_Character
#activated?, #animate_from_charset, #bush_depth, #cancel_charset_animation, #contact?, #define_path, #each_front_tiles, #each_front_tiles_rect, #emotion, #find_path, #fishing_creek_amount, #fly_reset_attributes, #follower_check?, #follower_move, #follower_sliding?, #force_move_route, #front_name_check, #front_system_tag, #front_system_tag_db_symbol, #front_terrain_tag, #front_tile, #front_tile_event, #front_tile_id, #jump, #jump_bridge_check, #jumping?, #lock, #lock?, #look_this_event, #look_to, #movable?, #move_away_from_player, #move_backward, #move_down, #move_follower_to_character, #move_forward, #move_frequency=, #move_left, #move_lower_left, #move_lower_right, #move_random, #move_random_within_systemtag, #move_random_within_zone, #move_right, #move_toward, #move_toward_player, #move_type_path, #move_up, #move_upper_left, #move_upper_right, #movement_process_end, #moving?, #next_event_follower, #original_move_speed, #particle_push, #particle_push_grass, #particle_push_pond, #particle_push_puddle, #particle_push_snow, #particle_push_tall_grass, #particle_push_wetsand, #passable_bridge_check?, #reset_follower_move, #screen_x, #screen_z, #set_appearance, #set_surfing, #shadow_screen_x, #shadow_screen_y, #sliding?, #slope_check_left, #slope_check_right, #stair_move_left, #stair_move_right, #stop_path, #straighten, #surfing?, #system_tag, #system_tag_db_symbol, #terrain_tag, #turn_180, #turn_away_from_player, #turn_down, #turn_left, #turn_left_90, #turn_random, #turn_right, #turn_right_90, #turn_right_or_left_90, #turn_toward_character, #turn_toward_player, #turn_up, #unlock, #wait_charset_animation, #z_bridge_check
Methods included from GameData::SystemTags
Constructor Details
#initialize ⇒ Game_Player
Default initializer
2079 2080 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2079 def initialize end |
Instance Attribute Details
#acro_appearence ⇒ Boolean
true if the player is on the back wheel of its Acro bike
2077 2078 2079 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2077 def acro_appearence @acro_appearence end |
#charset_base ⇒ String? (readonly)
Return the charset_base used to calculate the graphic
2257 2258 2259 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2257 def charset_base @charset_base end |
#on_acro_bike ⇒ Boolean
Indicate if the player is on acro bike
2299 2300 2301 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2299 def on_acro_bike @on_acro_bike end |
#update_callback ⇒ Symbol? (readonly)
Returns the update_callback.
2339 2340 2341 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2339 def update_callback @update_callback end |
Instance Method Details
#acro_passable_check(d, result)
Test if the player can pass Bike bridge
2150 2151 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2150 def acro_passable_check(d, result) end |
#bridge_down_check(z) Also known as: bridge_up_check
Same as Game_Character but with Acro bike
2325 2326 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2325 def bridge_down_check(z) end |
#bridge_left_check(z) Also known as: bridge_right_check
Same as Game_Character but with Acro bike
2330 2331 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2330 def bridge_left_check(z) end |
#calibrate_acro_direction(last_dir)
Reset the direction of the player when he’s on bike bridge
2221 2222 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2221 def calibrate_acro_direction(last_dir) end |
#center(x, y)
Adjust the map display according to the given position
2084 2085 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2084 def center(x, y) end |
#change_z_with_follower(value)
Set the player z and all its follower z at the same tile
2294 2295 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2294 def change_z_with_follower(value) end |
#chara_by_state ⇒ String
Get the character suffix from the hash
2266 2267 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2266 def chara_by_state end |
#check_common_event_trigger_there(new_x, new_y, z, d)
Check the common event call
2190 2191 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2190 def check_common_event_trigger_there(new_x, new_y, z, d) end |
#check_event_trigger_here(triggers) ⇒ Boolean
Check if there’s an event trigger on the tile where the player stands
2176 2177 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2176 def check_event_trigger_here(triggers) end |
#check_event_trigger_there(triggers) ⇒ Boolean
Check if there’s an event trigger in front of the player (when he presses A)
2181 2182 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2181 def check_event_trigger_there(triggers) end |
#check_event_trigger_touch(x, y)
Check if the player touch an event and start it if so
2201 2202 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2201 def check_event_trigger_touch(x, y) end |
#check_follower_trigger_there(new_x, new_y) ⇒ Boolean
Check the follower common event call
2196 2197 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2196 def check_follower_trigger_there(new_x, new_y) end |
#cycling? ⇒ Boolean
Test if the player is cycling
2384 2385 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2384 def cycling? end |
#detect_deep_swamp_sinking(last_in_swamp)
Detect if we should trigger the deep_swamp sinking when we detect swamp info
2320 2321 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2320 def detect_deep_swamp_sinking(last_in_swamp) end |
#detect_swamp
Detect the swamp state
2308 2309 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2308 def detect_swamp end |
#detect_swamp_entering(last_in_swamp)
Detect if we are entering in the swamp, then update the state
2316 2317 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2316 def detect_swamp_entering(last_in_swamp) end |
#detect_swamp_leaving(last_in_swamp)
Detect if we are leaving the swamp, then update the state
2312 2313 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2312 def detect_swamp_leaving(last_in_swamp) end |
#enter_in_acro_bike_state
Jump on the acro bike
2373 2374 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2373 def enter_in_acro_bike_state end |
#enter_in_cycling_state
Jump on the mach bike
2370 2371 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2370 def enter_in_cycling_state end |
#enter_in_fishing_state
Enter in fishing state
2387 2388 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2387 def enter_in_fishing_state end |
#enter_in_giving_pokemon_state
Enter in giving_pokemon state
2417 2418 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2417 def enter_in_giving_pokemon_state end |
#enter_in_running_state
Enter in running state (supports the swamp state)
2349 2350 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2349 def enter_in_running_state end |
#enter_in_saving_state
Enter in saving state
2411 2412 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2411 def enter_in_saving_state end |
#enter_in_sinking_state
Enter in sinking state
2399 2400 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2399 def enter_in_sinking_state end |
#enter_in_surfing_state
Enter in surfing state
2352 2353 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2352 def enter_in_surfing_state end |
#enter_in_taking_pokemon_state
Enter in taking_pokemon state
2423 2424 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2423 def enter_in_taking_pokemon_state end |
#enter_in_using_skill_state
Enter in using_skill state
2414 2415 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2414 def enter_in_using_skill_state end |
#enter_in_walking_state ⇒ :walking
Enter in walking state (supports the swamp state)
2346 2347 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2346 def enter_in_walking_state end |
#enter_in_wheel_state
Enter in the wheel state
2358 2359 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2358 def enter_in_wheel_state end |
#event_passable_check?(new_x, new_y, z, game_map) ⇒ Boolean
Check the passage related to events
2163 2164 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2163 def event_passable_check?(new_x, new_y, z, game_map) end |
#falling_hole_warp
Function that makes the player warp based on hole data for each map
2446 2447 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2446 def falling_hole_warp end |
#follower_tail ⇒ Game_Character, self
Return the tail of the following queue (Game_Event exclusive)
2281 2282 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2281 def follower_tail end |
#increase_steps
Increases a step and displays related things
2101 2102 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2101 def increase_steps end |
#leave_cycling_state Also known as: leave_acro_bike_state
Leave the cycling state
2376 2377 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2376 def leave_cycling_state end |
#leave_fishing_state
Leave fishing state
2393 2394 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2393 def leave_fishing_state end |
#leave_sinking_state
Leave sinking state
2405 2406 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2405 def leave_sinking_state end |
#leave_surfing_state
Leave the surfing state
2355 2356 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2355 def leave_surfing_state end |
#leave_wheel_state
Leave the wheel state
2364 2365 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2364 def leave_wheel_state end |
#moveto(x, y)
Warp the player to a specific position. The map display will be centered
2089 2090 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2089 def moveto(x, y) end |
#moveto_system_tag_manage
Manage the system_tag part of the moveto method
2092 2093 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2092 def moveto_system_tag_manage end |
#particle_push_sand
Push the sand particle only if the player is not cycling
2276 2277 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2276 def particle_push_sand end |
#passable?(x, y, d) ⇒ Boolean
is the tile in front of the player passable ? / Plays a BUMP SE in some conditions
2142 2143 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2142 def passable?(x, y, d) end |
#passage_surf_check?(sys_tag) ⇒ Boolean
Check the surf related passabilities
2155 2156 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2155 def passage_surf_check?(sys_tag) end |
#player_move
Move the player. Does some calibration for the Acro Bike.
2216 2217 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2216 def player_move end |
#player_move_on_cracked_floor_update
Update the cracked floor when the player move on it
2253 2254 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2253 def player_move_on_cracked_floor_update end |
#player_turn(swamp_detect)
Turn the player on himself. Does some calibration for the Acro Bike.
2212 2213 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2212 def player_turn(swamp_detect) end |
#player_update_move
Move or turn the player according to its input. The common event 2 can be triggered there
2208 2209 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2208 def player_update_move end |
#player_update_move_bump(bool)
Manage the bump part of the player_update_move
2239 2240 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2239 def player_update_move_bump(bool) end |
#player_update_move_bump_restore_step_anime
Restore step anime if it was changed
2242 2243 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2242 def player_update_move_bump_restore_step_anime end |
#player_update_move_common_events(bool)
Manage the common event calling of player_update_move
2246 2247 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2246 def player_update_move_common_events(bool) end |
#player_update_move_running_state(bool)
Manage the running update of player_update_move inside player_update_move_common_events
2250 2251 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2250 def player_update_move_running_state(bool) end |
#process_slope_y_modifier(y_modifier)
Process the slope y modifier with scrolling handling
2110 2111 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2110 def process_slope_y_modifier(y_modifier) end |
#refresh
Refresh the player graphics
2104 2105 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2104 def refresh end |
#reset_follower
Reset the follower stack to prevent any issue
2290 2291 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2290 def reset_follower end |
#return_to_previous_state
Return to the correct state
2437 2438 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2437 def return_to_previous_state end |
#screen_y ⇒ Integer
Overwrite the screen_y to add the surfing animation
2098 2099 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2098 def screen_y end |
#search_item
Search an invisible item
2305 2306 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2305 def search_item end |
#set_appearance_set(charset_base)
Change the appearance set for the player. The argument is the base of the charset name. For exemple : for the file “HeroRed001_M_walk”, the charset base will be “HeroRed001”
2272 2273 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2272 def set_appearance_set(charset_base) end |
#set_follower(follower, force = false)
Define the follower of the player, if the player already has event following him, it’ll put them at the tail of the following events
2287 2288 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2287 def set_follower(follower, force = false) end |
#update
Update the player movements according to inputs
2107 2108 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2107 def update end |
#update_4_step_animation(factor = 1)
Callback called when we only want the character to show it’s 4 pattern (it’ll lock the player, use return_to_previous_state to unlock)
2430 2431 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2430 def update_4_step_animation(factor = 1) end |
#update_4_step_animation_to_previous(factor = 1)
Callback called when we only want the character to show it’s 4 pattern and return to previous state
2434 2435 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2434 def update_4_step_animation_to_previous(factor = 1) end |
#update_acro_bike(count, sys_tag) ⇒ Boolean?
Update the Acro Bike jump info
2228 2229 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2228 def update_acro_bike(count, sys_tag) end |
#update_acro_bike_turn(sys_tag) ⇒ Boolean?
Update the Acro Bike jump info when not moving
2235 2236 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2235 def update_acro_bike_turn(sys_tag) end |
#update_appearance(forced_pattern = 0)
Launch the player update appearance
2261 2262 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2261 def update_appearance(forced_pattern = 0) end |
#update_cycling_state
Update the cycling state
2380 2381 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2380 def update_cycling_state end |
#update_enter_fishing_state
Callback called when we are entering in wheel state
2390 2391 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2390 def update_enter_fishing_state end |
#update_enter_sinking_state
Callback called when we are entering in wheel state
2402 2403 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2402 def update_enter_sinking_state end |
#update_enter_wheel_state
Callback called when we are entering in wheel state
2361 2362 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2361 def update_enter_wheel_state end |
#update_giving_pokemon_state
Update the Pokemon giving animation
2420 2421 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2420 def update_giving_pokemon_state end |
#update_leave_fishing_state
Callback called when we are leaving in wheel state
2396 2397 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2396 def update_leave_fishing_state end |
#update_leave_sinking_state
Callback called when we are leaving in wheel state
2408 2409 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2408 def update_leave_sinking_state end |
#update_leave_wheel_state
Callback called when we are leaving in wheel state
2367 2368 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2367 def update_leave_wheel_state end |
#update_locked_state
Update the locked state
2440 2441 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2440 def update_locked_state() end |
#update_move_parameter(state)
Update the move_speed & move_frequency parameters
2342 2343 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2342 def update_move_parameter(state) end |
#update_taking_pokemon_state
Update the Pokemon taking animation
2426 2427 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 2426 def update_taking_pokemon_state end |