Class: Game_Player
- Inherits:
-
Game_Character
- Object
- Game_Character
- Game_Player
- Defined in:
- docs/4_Systems_003_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', climbing_down: '_rockclimb_down', climbing_up: '_rockclimb_up', running: '_run', walking: '_walk', surfing: '_surf', swamp: '_swamp', swamp_running: '_swamp_run', sinking: '_deep_swamp_sinking', watering_berries: '_misc2'}
- 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], climbing_down: [5, 4], climbing_up: [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, Game_Character::WHIRLPOOL_PARTICLE_NAME
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::RClimb, 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_climbing_down_state
Enter in climbing up state.
-
#enter_in_climbing_up_state
Enter in climbing up state.
-
#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_watering_berries_state
Enter in watering berries 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_climbing_state
Leave the climbing up state.
-
#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_watering_berries_state
Leave the watering berries 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_rockclimb, #particle_push_snow, #particle_push_tall_grass, #particle_push_waterfall, #particle_push_wetsand, #particle_push_whirlpool, #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
2785 2786 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2785 def initialize end |
Instance Attribute Details
#acro_appearence ⇒ Boolean
true if the player is on the back wheel of its Acro bike
2783 2784 2785 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2783 def acro_appearence @acro_appearence end |
#charset_base ⇒ String? (readonly)
Return the charset_base used to calculate the graphic
2963 2964 2965 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2963 def charset_base @charset_base end |
#on_acro_bike ⇒ Boolean
Indicate if the player is on acro bike
3005 3006 3007 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3005 def on_acro_bike @on_acro_bike end |
#update_callback ⇒ Symbol? (readonly)
Returns the update_callback.
3045 3046 3047 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3045 def update_callback @update_callback end |
Instance Method Details
#acro_passable_check(d, result)
Test if the player can pass Bike bridge
2856 2857 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2856 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
3031 3032 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3031 def bridge_down_check(z) end |
#bridge_left_check(z) Also known as: bridge_right_check
Same as Game_Character but with Acro bike
3036 3037 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3036 def bridge_left_check(z) end |
#calibrate_acro_direction(last_dir)
Reset the direction of the player when he’s on bike bridge
2927 2928 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2927 def calibrate_acro_direction(last_dir) end |
#center(x, y)
Adjust the map display according to the given position
2790 2791 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2790 def center(x, y) end |
#change_z_with_follower(value)
Set the player z and all its follower z at the same tile
3000 3001 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3000 def change_z_with_follower(value) end |
#chara_by_state ⇒ String
Get the character suffix from the hash
2972 2973 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2972 def chara_by_state end |
#check_common_event_trigger_there(new_x, new_y, z, d)
Check the common event call
2896 2897 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2896 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
2882 2883 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2882 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)
2887 2888 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2887 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
2907 2908 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2907 def check_event_trigger_touch(x, y) end |
#check_follower_trigger_there(new_x, new_y) ⇒ Boolean
Check the follower common event call
2902 2903 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2902 def check_follower_trigger_there(new_x, new_y) end |
#cycling? ⇒ Boolean
Test if the player is cycling
3090 3091 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3090 def cycling? end |
#detect_deep_swamp_sinking(last_in_swamp)
Detect if we should trigger the deep_swamp sinking when we detect swamp info
3026 3027 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3026 def detect_deep_swamp_sinking(last_in_swamp) end |
#detect_swamp
Detect the swamp state
3014 3015 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3014 def detect_swamp end |
#detect_swamp_entering(last_in_swamp)
Detect if we are entering in the swamp, then update the state
3022 3023 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3022 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
3018 3019 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3018 def detect_swamp_leaving(last_in_swamp) end |
#enter_in_acro_bike_state
Jump on the acro bike
3079 3080 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3079 def enter_in_acro_bike_state end |
#enter_in_climbing_down_state
Enter in climbing up state
3138 3139 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3138 def enter_in_climbing_down_state end |
#enter_in_climbing_up_state
Enter in climbing up state
3135 3136 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3135 def enter_in_climbing_up_state end |
#enter_in_cycling_state
Jump on the mach bike
3076 3077 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3076 def enter_in_cycling_state end |
#enter_in_fishing_state
Enter in fishing state
3093 3094 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3093 def enter_in_fishing_state end |
#enter_in_giving_pokemon_state
Enter in giving_pokemon state
3123 3124 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3123 def enter_in_giving_pokemon_state end |
#enter_in_running_state
Enter in running state (supports the swamp state)
3055 3056 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3055 def enter_in_running_state end |
#enter_in_saving_state
Enter in saving state
3117 3118 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3117 def enter_in_saving_state end |
#enter_in_sinking_state
Enter in sinking state
3105 3106 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3105 def enter_in_sinking_state end |
#enter_in_surfing_state
Enter in surfing state
3058 3059 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3058 def enter_in_surfing_state end |
#enter_in_taking_pokemon_state
Enter in taking_pokemon state
3129 3130 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3129 def enter_in_taking_pokemon_state end |
#enter_in_using_skill_state
Enter in using_skill state
3120 3121 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3120 def enter_in_using_skill_state end |
#enter_in_walking_state ⇒ :walking
Enter in walking state (supports the swamp state)
3052 3053 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3052 def enter_in_walking_state end |
#enter_in_watering_berries_state
Do not call this function while surfing
Enter in watering berries state
3145 3146 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3145 def enter_in_watering_berries_state end |
#enter_in_wheel_state
Enter in the wheel state
3064 3065 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3064 def enter_in_wheel_state end |
#event_passable_check?(new_x, new_y, z, game_map) ⇒ Boolean
Check the passage related to events
2869 2870 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2869 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
3168 3169 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3168 def falling_hole_warp end |
#follower_tail ⇒ Game_Character, self
Return the tail of the following queue (Game_Event exclusive)
2987 2988 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2987 def follower_tail end |
#increase_steps
Increases a step and displays related things
2807 2808 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2807 def increase_steps end |
#leave_climbing_state
Leave the climbing up state
3141 3142 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3141 def leave_climbing_state end |
#leave_cycling_state Also known as: leave_acro_bike_state
Leave the cycling state
3082 3083 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3082 def leave_cycling_state end |
#leave_fishing_state
Leave fishing state
3099 3100 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3099 def leave_fishing_state end |
#leave_sinking_state
Leave sinking state
3111 3112 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3111 def leave_sinking_state end |
#leave_surfing_state
Leave the surfing state
3061 3062 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3061 def leave_surfing_state end |
#leave_watering_berries_state
Leave the watering berries state
3148 3149 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3148 def leave_watering_berries_state end |
#leave_wheel_state
Leave the wheel state
3070 3071 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3070 def leave_wheel_state end |
#moveto(x, y)
Warp the player to a specific position. The map display will be centered
2795 2796 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2795 def moveto(x, y) end |
#moveto_system_tag_manage
Manage the system_tag part of the moveto method
2798 2799 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2798 def moveto_system_tag_manage end |
#particle_push_sand
Push the sand particle only if the player is not cycling
2982 2983 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2982 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
2848 2849 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2848 def passable?(x, y, d) end |
#passage_surf_check?(sys_tag) ⇒ Boolean
Check the surf related passabilities
2861 2862 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2861 def passage_surf_check?(sys_tag) end |
#player_move
Move the player. Does some calibration for the Acro Bike.
2922 2923 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2922 def player_move end |
#player_move_on_cracked_floor_update
Update the cracked floor when the player move on it
2959 2960 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2959 def player_move_on_cracked_floor_update end |
#player_turn(swamp_detect)
Turn the player on himself. Does some calibration for the Acro Bike.
2918 2919 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2918 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
2914 2915 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2914 def player_update_move end |
#player_update_move_bump(bool)
Manage the bump part of the player_update_move
2945 2946 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2945 def player_update_move_bump(bool) end |
#player_update_move_bump_restore_step_anime
Restore step anime if it was changed
2948 2949 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2948 def player_update_move_bump_restore_step_anime end |
#player_update_move_common_events(bool)
Manage the common event calling of player_update_move
2952 2953 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2952 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
2956 2957 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2956 def player_update_move_running_state(bool) end |
#process_slope_y_modifier(y_modifier)
Process the slope y modifier with scrolling handling
2816 2817 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2816 def process_slope_y_modifier(y_modifier) end |
#refresh
Refresh the player graphics
2810 2811 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2810 def refresh end |
#reset_follower
Reset the follower stack to prevent any issue
2996 2997 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2996 def reset_follower end |
#return_to_previous_state
Return to the correct state
3159 3160 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3159 def return_to_previous_state end |
#screen_y ⇒ Integer
Overwrite the screen_y to add the surfing animation
2804 2805 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2804 def screen_y end |
#search_item
Search an invisible item
3011 3012 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3011 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”
2978 2979 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2978 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
2993 2994 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2993 def set_follower(follower, force = false) end |
#update
Update the player movements according to inputs
2813 2814 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2813 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)
3152 3153 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3152 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
3156 3157 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3156 def update_4_step_animation_to_previous(factor = 1) end |
#update_acro_bike(count, sys_tag) ⇒ Boolean?
Update the Acro Bike jump info
2934 2935 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2934 def update_acro_bike(count, sys_tag) end |
#update_acro_bike_turn(sys_tag) ⇒ Boolean?
Update the Acro Bike jump info when not moving
2941 2942 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2941 def update_acro_bike_turn(sys_tag) end |
#update_appearance(forced_pattern = 0)
Launch the player update appearance
2967 2968 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 2967 def update_appearance(forced_pattern = 0) end |
#update_cycling_state
Update the cycling state
3086 3087 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3086 def update_cycling_state end |
#update_enter_fishing_state
Callback called when we are entering in wheel state
3096 3097 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3096 def update_enter_fishing_state end |
#update_enter_sinking_state
Callback called when we are entering in wheel state
3108 3109 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3108 def update_enter_sinking_state end |
#update_enter_wheel_state
Callback called when we are entering in wheel state
3067 3068 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3067 def update_enter_wheel_state end |
#update_giving_pokemon_state
Update the Pokemon giving animation
3126 3127 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3126 def update_giving_pokemon_state end |
#update_leave_fishing_state
Callback called when we are leaving in wheel state
3102 3103 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3102 def update_leave_fishing_state end |
#update_leave_sinking_state
Callback called when we are leaving in wheel state
3114 3115 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3114 def update_leave_sinking_state end |
#update_leave_wheel_state
Callback called when we are leaving in wheel state
3073 3074 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3073 def update_leave_wheel_state end |
#update_locked_state
Update the locked state
3162 3163 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3162 def update_locked_state() end |
#update_move_parameter(state)
Update the move_speed & move_frequency parameters
3048 3049 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3048 def update_move_parameter(state) end |
#update_taking_pokemon_state
Update the Pokemon taking animation
3132 3133 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 3132 def update_taking_pokemon_state end |