Class: Scene_Map

Inherits:
GamePlay::Base show all
Includes:
Graphics::FPSBalancer::Marker, Hooks
Defined in:
docs/01450_Systems_00003_Map_Engine.rb

Overview

The map gameplay scene

Constant Summary collapse

PSN_COLOR =

Poison flash color

Color.new(123, 55, 123, 128)
RMXP_WILD_BATTLE_GROUPS =

List of RMXP Group that should be treated as “wild battle”

[1, 30]

Constants inherited from GamePlay::Base

GamePlay::Base::DEFAULT_TRANSITION, GamePlay::Base::DEFAULT_TRANSITION_PARAMETER

Constants included from Input

Input::ALIAS_KEYS, Input::AXIS_MAPPING, Input::AXIS_SENSITIVITY, Input::DEAD_ZONE, Input::Keyboard, Input::Keys, Input::NON_TRIGGER_ZONE, Input::REPEAT_COOLDOWN, Input::REPEAT_SPACE

Constants included from GamePlay::DisplayMessage

GamePlay::DisplayMessage::MESSAGE_ERROR, GamePlay::DisplayMessage::MESSAGE_PROCESS_ERROR

Class Attribute Summary collapse

Instance Attribute Summary collapse

Attributes inherited from GamePlay::Base

#__last_scene, #__result_process, #running, #viewport

Attributes included from GamePlay::DisplayMessage

#message_window

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Graphics::FPSBalancer::Marker

#frame_balanced?

Methods included from Hooks

#exec_hooks, #force_return, included, register, remove, remove_without_name

Methods inherited from GamePlay::Base

#add_disposable, #call_scene, #dispose, #find_parent, #main, #return_to_scene, #visible

Methods included from Input

dir4, dir8, get_text, joy_axis_position, press?, register_events, released?, repeat?, swap_states, trigger?

Methods included from GamePlay::DisplayMessage

#can_display_message_be_called?, #close_message_window, #display_message, #display_message_and_wait, #message_class, #message_processing?, #message_visible, #message_visible=

Constructor Details

#initializeScene_Map

Create a new Scene_Map



3219
3220
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3219

def initialize
end

Class Attribute Details

.battle_modesArray<Proc> (readonly)

List all the battle modes

Returns:

  • (Array<Proc>)


3299
3300
3301
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3299

def battle_modes
  @battle_modes
end

.triggersHash{ Symbol => Proc } (readonly)

List of call_xxx trigger

Returns:

  • (Hash{ Symbol => Proc })


3291
3292
3293
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3291

def triggers
  @triggers
end

Instance Attribute Details

#spritesetSpriteset_Map (readonly)

Access to the spriteset of the map

Returns:



3215
3216
3217
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3215

def spriteset
  @spriteset
end

Class Method Details

.add_call_scene(method_name, &block)

Add a call scene in Scene_Map

Parameters:

  • method_name (Symbol)

    name of the method to call (no argument)

  • block (Proc)

    block to execute in order to be sure the scene callable



3295
3296
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3295

def add_call_scene(method_name, &block)
end

.register_battle_mode(id, &block) {|scene| ... }

Add a battle mode

Parameters:

  • id (Integer)

    ID of the battle mode

  • block (Proc)

Yield Parameters:



3304
3305
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3304

def register_battle_mode(id, &block)
end

Instance Method Details

#delay_display_call(*args)

Prepare the call of a display_ method

Parameters:

  • args (Array)

    the send method parameter



3257
3258
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3257

def delay_display_call(*args)
end

#display_egg_hatch(pokemon)

Display the Egg hatch sequence

Parameters:



3253
3254
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3253

def display_egg_hatch(pokemon)
end

#display_poison_animation

Display the poisoning animation sequence



3249
3250
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3249

def display_poison_animation
end

#display_poison_end(pokemon)

Display the end of poisoning sequence

Parameters:



3243
3244
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3243

def display_poison_end(pokemon)
end

#display_poison_faint(pokemon)

Display text showing pokemon fainted from poison



3246
3247
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3246

def display_poison_faint(pokemon)
end

#display_repel_check

Display the repel check sequence



3239
3240
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3239

def display_repel_check
end

#setup_start_battle(klass, battle_info)

Ensure the battle will start without any weird behaviour

Parameters:



3310
3311
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3310

def setup_start_battle(klass, battle_info)
end

#snap_to_bitmapTexture

Note:

You have to dispose the bitmap you got from this function

Take a snapshot of the scene

Returns:



3266
3267
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3266

def snap_to_bitmap
end

#sprite_set_update

Update everything related to the graphics of the map (used in Interfaces that require that)



3232
3233
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3232

def sprite_set_update
end

#sprite_set_visible=(v)

Change the spriteset visibility

Parameters:

  • v (Boolean)

    the new visibility of the spriteset



3236
3237
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3236

def sprite_set_visible=(v)
end

#update

Update the scene process



3222
3223
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3222

def update
end

#update_graphics

Section where we update the graphics of the scene (for now only spriteset)



3225
3226
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3225

def update_graphics
end

#visible=(value)

Change the viewport visibility of the scene (we overwrite it because we don’t want viewport to be hidden when calling a scene)

Parameters:

  • value (Boolean)


3229
3230
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3229

def visible=(value)
end

#window_message_close(smooth)

Force the message window to close

Parameters:

  • smooth (Boolean)

    if the message window is closed smoothly or not



3261
3262
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 3261

def window_message_close(smooth)
end