Class: Game_Player

Inherits:
Game_Character show all
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
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.

Returns:

  • (Hash) —

    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.

Returns:

  • (Hash) —

    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.

Returns:

  • (Hash{map_id=>Array<map_id, offset_x, offset_y>}) —

    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

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

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_event_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

gen, system_tag_db_symbol

Constructor Details

#initialize ⇒ Game_Player

Default initializer



2863
2864
# File 'docs/4_Systems_003_Map_Engine.rb', line 2863

def initialize
end

Instance Attribute Details

#acro_appearence ⇒ Boolean

true if the player is on the back wheel of its Acro bike

Returns:

  • (Boolean)


2861
2862
2863
# File 'docs/4_Systems_003_Map_Engine.rb', line 2861

def acro_appearence
  @acro_appearence
end

#charset_base ⇒ String? (readonly)

Return the charset_base used to calculate the graphic

Returns:

  • (String, nil) —

    return the charset_base used to calculate the graphic



3049
3050
3051
# File 'docs/4_Systems_003_Map_Engine.rb', line 3049

def charset_base
  @charset_base
end

#on_acro_bike ⇒ Boolean

Indicate if the player is on acro bike

Returns:

  • (Boolean)


3091
3092
3093
# File 'docs/4_Systems_003_Map_Engine.rb', line 3091

def on_acro_bike
  @on_acro_bike
end

#update_callback ⇒ Symbol? (readonly)

Returns the update_callback.

Returns:

  • (Symbol, nil) —

    the update_callback



3131
3132
3133
# File 'docs/4_Systems_003_Map_Engine.rb', line 3131

def update_callback
  @update_callback
end

Instance Method Details

#acro_passable_check(d, result)

Test if the player can pass Bike bridge

Author:

  • Nuri Yuri



2932
2933
# File 'docs/4_Systems_003_Map_Engine.rb', line 2932

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

Author:

  • Nuri Yuri



3117
3118
# File 'docs/4_Systems_003_Map_Engine.rb', line 3117

def bridge_down_check(z)
end

#bridge_left_check(z) Also known as: bridge_right_check

Same as Game_Character but with Acro bike

Author:

  • Nuri Yuri



3122
3123
# File 'docs/4_Systems_003_Map_Engine.rb', line 3122

def bridge_left_check(z)
end

#calibrate_acro_direction(last_dir)

Reset the direction of the player when he's on bike bridge

Parameters:

  • last_dir (Integer) —

    the last direction

Author:

  • Nuri Yuri



3006
3007
# File 'docs/4_Systems_003_Map_Engine.rb', line 3006

def calibrate_acro_direction(last_dir)
end

#can_run? ⇒ Boolean

Test if the player can run

Returns:

  • (Boolean)


3038
3039
# File 'docs/4_Systems_003_Map_Engine.rb', line 3038

def can_run?
end

#center(x, y)

Adjust the map display according to the given position

Parameters:

  • x (Integer) —

    the x position on the MAP

  • y (Integer) —

    the y position on the MAP



2868
2869
# File 'docs/4_Systems_003_Map_Engine.rb', line 2868

def center(x, y)
end

#change_z_with_follower(value)

Set the player z and all its follower z at the same tile

Parameters:

  • value (Integer) —

    new z value



3086
3087
# File 'docs/4_Systems_003_Map_Engine.rb', line 3086

def change_z_with_follower(value)
end

#chara_by_state ⇒ String

Get the character suffix from the hash

Returns:

Author:

  • Leikt



3058
3059
# File 'docs/4_Systems_003_Map_Engine.rb', line 3058

def chara_by_state
end

#check_common_event_trigger_there(new_x, new_y, z, d)

Check the common event call

Parameters:

  • new_x (Integer) —

    the x position to check

  • new_y (Integer) —

    the y position to check

  • z (Integer) —

    the z of the event

  • d (Integer) —

    the direction where to check



2975
2976
# File 'docs/4_Systems_003_Map_Engine.rb', line 2975

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

Parameters:

  • triggers (Array<Integer>) —

    the list of triggers to check

Returns:

  • (Boolean)


2961
2962
# File 'docs/4_Systems_003_Map_Engine.rb', line 2961

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)

Parameters:

  • triggers (Array<Integer>) —

    the list of triggers to check

Returns:

  • (Boolean)


2966
2967
# File 'docs/4_Systems_003_Map_Engine.rb', line 2966

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

Parameters:

  • x (Integer) —

    the x position to check

  • y (Integer) —

    the y position to check



2986
2987
# File 'docs/4_Systems_003_Map_Engine.rb', line 2986

def check_event_trigger_touch(x, y)
end

#check_follower_trigger_there(new_x, new_y) ⇒ Boolean

Check the follower common event call

Parameters:

  • new_x (Integer) —

    the x position to check

  • new_y (Integer) —

    the y position to check

Returns:

  • (Boolean) —

    if the trigger happened



2981
2982
# File 'docs/4_Systems_003_Map_Engine.rb', line 2981

def check_follower_trigger_there(new_x, new_y)
end

#cycling? ⇒ Boolean

Test if the player is cycling

Returns:

  • (Boolean)


3176
3177
# File 'docs/4_Systems_003_Map_Engine.rb', line 3176

def cycling?
end

#detect_deep_swamp_sinking(last_in_swamp)

Detect if we should trigger the deep_swamp sinking when we detect swamp info

Parameters:

  • last_in_swamp (Integer, false) —

    the last swamp info



3112
3113
# File 'docs/4_Systems_003_Map_Engine.rb', line 3112

def detect_deep_swamp_sinking(last_in_swamp)
end

#detect_swamp

Detect the swamp state



3100
3101
# File 'docs/4_Systems_003_Map_Engine.rb', line 3100

def detect_swamp
end

#detect_swamp_entering(last_in_swamp)

Detect if we are entering in the swamp, then update the state

Parameters:

  • last_in_swamp (Integer, false) —

    the last swamp info



3108
3109
# File 'docs/4_Systems_003_Map_Engine.rb', line 3108

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

Parameters:

  • last_in_swamp (Integer, false) —

    the last swamp info



3104
3105
# File 'docs/4_Systems_003_Map_Engine.rb', line 3104

def detect_swamp_leaving(last_in_swamp)
end

#enter_in_acro_bike_state

Jump on the acro bike



3165
3166
# File 'docs/4_Systems_003_Map_Engine.rb', line 3165

def enter_in_acro_bike_state
end

#enter_in_climbing_down_state

Enter in climbing up state



3224
3225
# File 'docs/4_Systems_003_Map_Engine.rb', line 3224

def enter_in_climbing_down_state
end

#enter_in_climbing_up_state

Enter in climbing up state



3221
3222
# File 'docs/4_Systems_003_Map_Engine.rb', line 3221

def enter_in_climbing_up_state
end

#enter_in_cycling_state

Jump on the mach bike



3162
3163
# File 'docs/4_Systems_003_Map_Engine.rb', line 3162

def enter_in_cycling_state
end

#enter_in_fishing_state

Enter in fishing state



3179
3180
# File 'docs/4_Systems_003_Map_Engine.rb', line 3179

def enter_in_fishing_state
end

#enter_in_giving_pokemon_state

Enter in giving_pokemon state



3209
3210
# File 'docs/4_Systems_003_Map_Engine.rb', line 3209

def enter_in_giving_pokemon_state
end

#enter_in_running_state

Enter in running state (supports the swamp state)



3141
3142
# File 'docs/4_Systems_003_Map_Engine.rb', line 3141

def enter_in_running_state
end

#enter_in_saving_state

Enter in saving state



3203
3204
# File 'docs/4_Systems_003_Map_Engine.rb', line 3203

def enter_in_saving_state
end

#enter_in_sinking_state

Enter in sinking state



3191
3192
# File 'docs/4_Systems_003_Map_Engine.rb', line 3191

def enter_in_sinking_state
end

#enter_in_surfing_state

Enter in surfing state



3144
3145
# File 'docs/4_Systems_003_Map_Engine.rb', line 3144

def enter_in_surfing_state
end

#enter_in_taking_pokemon_state

Enter in taking_pokemon state



3215
3216
# File 'docs/4_Systems_003_Map_Engine.rb', line 3215

def enter_in_taking_pokemon_state
end

#enter_in_using_skill_state

Enter in using_skill state



3206
3207
# File 'docs/4_Systems_003_Map_Engine.rb', line 3206

def enter_in_using_skill_state
end

#enter_in_walking_state ⇒ :walking

Enter in walking state (supports the swamp state)

Returns:

  • (:walking) —

    (It's used inside set_appearance_set when no state is defined)



3138
3139
# File 'docs/4_Systems_003_Map_Engine.rb', line 3138

def enter_in_walking_state
end

#enter_in_watering_berries_state

Note:

Do not call this function while surfing

Enter in watering berries state



3231
3232
# File 'docs/4_Systems_003_Map_Engine.rb', line 3231

def enter_in_watering_berries_state
end

#enter_in_wheel_state

Enter in the wheel state



3150
3151
# File 'docs/4_Systems_003_Map_Engine.rb', line 3150

def enter_in_wheel_state
end

#event_passable_check?(new_x, new_y, z, game_map) ⇒ Boolean

Check the passage related to events

Parameters:

  • new_x (Integer) —

    new x position

  • new_y (Integer) —

    new y position

  • z (Integer) —

    current z position

  • game_map (Game_Map) —

    map object

Returns:

  • (Boolean) —

    if the tile has no event that block the way



2945
2946
# File 'docs/4_Systems_003_Map_Engine.rb', line 2945

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



3254
3255
# File 'docs/4_Systems_003_Map_Engine.rb', line 3254

def falling_hole_warp
end

#follower_tail ⇒ Game_Character, self

Return the tail of the following queue (Game_Event exclusive)

Returns:



3073
3074
# File 'docs/4_Systems_003_Map_Engine.rb', line 3073

def follower_tail
end

#increase_steps

Increases a step and displays related things



2885
2886
# File 'docs/4_Systems_003_Map_Engine.rb', line 2885

def increase_steps
end

#leave_climbing_state

Leave the climbing up state



3227
3228
# File 'docs/4_Systems_003_Map_Engine.rb', line 3227

def leave_climbing_state
end

#leave_cycling_state Also known as: leave_acro_bike_state

Leave the cycling state



3168
3169
# File 'docs/4_Systems_003_Map_Engine.rb', line 3168

def leave_cycling_state
end

#leave_fishing_state

Leave fishing state



3185
3186
# File 'docs/4_Systems_003_Map_Engine.rb', line 3185

def leave_fishing_state
end

#leave_sinking_state

Leave sinking state



3197
3198
# File 'docs/4_Systems_003_Map_Engine.rb', line 3197

def leave_sinking_state
end

#leave_surfing_state

Leave the surfing state



3147
3148
# File 'docs/4_Systems_003_Map_Engine.rb', line 3147

def leave_surfing_state
end

#leave_watering_berries_state

Leave the watering berries state



3234
3235
# File 'docs/4_Systems_003_Map_Engine.rb', line 3234

def leave_watering_berries_state
end

#leave_wheel_state

Leave the wheel state



3156
3157
# File 'docs/4_Systems_003_Map_Engine.rb', line 3156

def leave_wheel_state
end

#moveto(x, y)

Warp the player to a specific position. The map display will be centered

Parameters:

  • x (Integer) —

    the x position on the MAP

  • y (Integer) —

    the y position on the MAP



2873
2874
# File 'docs/4_Systems_003_Map_Engine.rb', line 2873

def moveto(x, y)
end

#moveto_system_tag_manage

Manage the system_tag part of the moveto method



2876
2877
# File 'docs/4_Systems_003_Map_Engine.rb', line 2876

def moveto_system_tag_manage
end

#particle_push_sand

Push the sand particle only if the player is not cycling



3068
3069
# File 'docs/4_Systems_003_Map_Engine.rb', line 3068

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

Parameters:

  • x (Integer) —

    x position on the Map

  • y (Integer) —

    y position on the Map

  • d (Integer) —

    direction : 2, 4, 6, 8, 0. 0 = current position

Returns:

  • (Boolean) —

    if the front/current tile is passable



2924
2925
# File 'docs/4_Systems_003_Map_Engine.rb', line 2924

def passable?(x, y, d)
end

#passage_surf_check?(sys_tag) ⇒ Boolean

Check the surf related passabilities

Parameters:

  • sys_tag (Integer) —

    current system_tag

Returns:

  • (Boolean) —

    if the tile is passable according to the surf rules



2937
2938
# File 'docs/4_Systems_003_Map_Engine.rb', line 2937

def passage_surf_check?(sys_tag)
end

#player_move

Move the player. Does some calibration for the Acro Bike.

Author:

  • Nuri Yuri



3001
3002
# File 'docs/4_Systems_003_Map_Engine.rb', line 3001

def player_move
end

#player_move_on_cracked_floor_update

Update the cracked floor when the player move on it



3045
3046
# File 'docs/4_Systems_003_Map_Engine.rb', line 3045

def player_move_on_cracked_floor_update
end

#player_turn(swamp_detect)

Turn the player on himself. Does some calibration for the Acro Bike.

Author:

  • Nuri Yuri



2997
2998
# File 'docs/4_Systems_003_Map_Engine.rb', line 2997

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

Author:

  • Nuri Yuri



2993
2994
# File 'docs/4_Systems_003_Map_Engine.rb', line 2993

def player_update_move
end

#player_update_move_bump(bool)

Manage the bump part of the player_update_move

Parameters:

  • bool (Boolean) —

    tell if the player did a fast direction change



3023
3024
# File 'docs/4_Systems_003_Map_Engine.rb', line 3023

def player_update_move_bump(bool)
end

#player_update_move_bump_restore_step_anime

Restore step anime if it was changed



3026
3027
# File 'docs/4_Systems_003_Map_Engine.rb', line 3026

def player_update_move_bump_restore_step_anime
end

#player_update_move_common_events(bool)

Manage the common event calling of player_update_move

Parameters:

  • bool (Boolean)


3030
3031
# File 'docs/4_Systems_003_Map_Engine.rb', line 3030

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

Parameters:

  • bool (Boolean)


3034
3035
# File 'docs/4_Systems_003_Map_Engine.rb', line 3034

def player_update_move_running_state(bool)
end

#process_slope_y_modifier(y_modifier)

Process the slope y modifier with scrolling handling



2894
2895
# File 'docs/4_Systems_003_Map_Engine.rb', line 2894

def process_slope_y_modifier(y_modifier)
end

#refresh

Refresh the player graphics



2888
2889
# File 'docs/4_Systems_003_Map_Engine.rb', line 2888

def refresh
end

#reset_follower

Reset the follower stack to prevent any issue



3082
3083
# File 'docs/4_Systems_003_Map_Engine.rb', line 3082

def reset_follower
end

#return_to_previous_state

Return to the correct state



3245
3246
# File 'docs/4_Systems_003_Map_Engine.rb', line 3245

def return_to_previous_state
end

#screen_y ⇒ Integer

Overwrite the screen_y to add the surfing animation

Returns:

  • (Integer)


2882
2883
# File 'docs/4_Systems_003_Map_Engine.rb', line 2882

def screen_y
end

#search_item

Search an invisible item



3097
3098
# File 'docs/4_Systems_003_Map_Engine.rb', line 3097

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"

Parameters:

  • charset_base (String, nil) —

    the base of the charsets filenames (nil = don't use the charset_base)

Author:

  • Leikt



3064
3065
# File 'docs/4_Systems_003_Map_Engine.rb', line 3064

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

Parameters:

  • follower (Game_Character, Game_Event) —

    the follower

  • force (Boolean) (defaults to: false) —

    param comming from Yuki::FollowMe to actually force the follower

Author:

  • Nuri Yuri



3079
3080
# File 'docs/4_Systems_003_Map_Engine.rb', line 3079

def set_follower(follower, force = false)
end

#should_run? ⇒ Boolean

Test if the player should be running

Returns:

  • (Boolean)


3042
3043
# File 'docs/4_Systems_003_Map_Engine.rb', line 3042

def should_run?
end

#update

Update the player movements according to inputs



2891
2892
# File 'docs/4_Systems_003_Map_Engine.rb', line 2891

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)

Parameters:

  • factor (Integer) (defaults to: 1) —

    the number added to pattern



3238
3239
# File 'docs/4_Systems_003_Map_Engine.rb', line 3238

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

Parameters:

  • factor (Integer) (defaults to: 1) —

    the number added to pattern



3242
3243
# File 'docs/4_Systems_003_Map_Engine.rb', line 3242

def update_4_step_animation_to_previous(factor = 1)
end

#update_acro_bike(count, sys_tag) ⇒ Boolean?

Update the Acro Bike jump info

Parameters:

  • count (Integer) —

    number of @acro_count frame before the player is allowed to jump

  • sys_tag (Integer) —

    the current system tag

Returns:

  • (Boolean, nil) —

    if the player can jump (nil = not allowed to jump but can move forward)

Author:

  • Nuri Yuri



3013
3014
# File 'docs/4_Systems_003_Map_Engine.rb', line 3013

def update_acro_bike(count, sys_tag)
end

#update_acro_bike_turn(sys_tag) ⇒ Boolean?

Update the Acro Bike jump info when not moving

Parameters:

  • sys_tag (Integer) —

    the current system tag

Returns:

  • (Boolean, nil) —

    if the player can jump (nil = not allowed to jump but can move forward)

Author:

  • Leikt



3019
3020
# File 'docs/4_Systems_003_Map_Engine.rb', line 3019

def update_acro_bike_turn(sys_tag)
end

#update_appearance(forced_pattern = 0)

Launch the player update appearance

Parameters:

  • forced_pattern (Integer) (defaults to: 0) —

    pattern after update (default : 0)

Author:

  • Leikt



3053
3054
# File 'docs/4_Systems_003_Map_Engine.rb', line 3053

def update_appearance(forced_pattern = 0)
end

#update_cycling_state

Update the cycling state



3172
3173
# File 'docs/4_Systems_003_Map_Engine.rb', line 3172

def update_cycling_state
end

#update_enter_fishing_state

Callback called when we are entering in wheel state



3182
3183
# File 'docs/4_Systems_003_Map_Engine.rb', line 3182

def update_enter_fishing_state
end

#update_enter_sinking_state

Callback called when we are entering in wheel state



3194
3195
# File 'docs/4_Systems_003_Map_Engine.rb', line 3194

def update_enter_sinking_state
end

#update_enter_wheel_state

Callback called when we are entering in wheel state



3153
3154
# File 'docs/4_Systems_003_Map_Engine.rb', line 3153

def update_enter_wheel_state
end

#update_giving_pokemon_state

Update the Pokemon giving animation



3212
3213
# File 'docs/4_Systems_003_Map_Engine.rb', line 3212

def update_giving_pokemon_state
end

#update_leave_fishing_state

Callback called when we are leaving in wheel state



3188
3189
# File 'docs/4_Systems_003_Map_Engine.rb', line 3188

def update_leave_fishing_state
end

#update_leave_sinking_state

Callback called when we are leaving in wheel state



3200
3201
# File 'docs/4_Systems_003_Map_Engine.rb', line 3200

def update_leave_sinking_state
end

#update_leave_wheel_state

Callback called when we are leaving in wheel state



3159
3160
# File 'docs/4_Systems_003_Map_Engine.rb', line 3159

def update_leave_wheel_state
end

#update_locked_state

Update the locked state



3248
3249
# File 'docs/4_Systems_003_Map_Engine.rb', line 3248

def update_locked_state()
end

#update_move_parameter(state)

Update the move_speed & move_frequency parameters

Parameters:

  • state (Symbol) —

    the name of the state to fetch the move parameter



3134
3135
# File 'docs/4_Systems_003_Map_Engine.rb', line 3134

def update_move_parameter(state)
end

#update_taking_pokemon_state

Update the Pokemon taking animation



3218
3219
# File 'docs/4_Systems_003_Map_Engine.rb', line 3218

def update_taking_pokemon_state
end