Class: UI::BallBurst

Overview

Class that describes the Ball Burst animation used when a Ball opens

Instance Attribute Summary

Attributes inherited from SpriteSheet

#nb_x, #nb_y, #sx, #sy

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

Attributes inherited from LiteRGSS::Sprite

#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y

Instance Method Summary collapse

Methods included from RecenterSprite

#add_position, #recenter

Methods inherited from SpriteSheet

#bitmap=, #resize, #select

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update

Methods inherited from LiteRGSS::Sprite

#set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, pokemon_or_item, scene) ⇒ BallBurst

Create a new BallBurst

Parameters:



2564
2565
# File 'docs/5_Battle_02_Visual.rb', line 2564

def initialize(viewport, pokemon_or_item, scene)
end

Instance Method Details

#ball_z_position(pokemon_or_item) ⇒ Integer

Return the z position for correct perspective ordering in multi-Pokemon battles

Parameters:

Returns:

  • (Integer)


2576
2577
# File 'docs/5_Battle_02_Visual.rb', line 2576

def ball_z_position(pokemon_or_item)
end

#open_progression=(progression)

Function that adjust the sy depending on the progression of the "open" animation

Parameters:

  • progression (Float)


2593
2594
# File 'docs/5_Battle_02_Visual.rb', line 2593

def open_progression=(progression)
end

#reset_position(bank, position, scene, start_battle = false)

Reset the Ballburst position

Parameters:

  • bank (Integer)
  • position (Integer)
  • scene (Battle::Scene)
  • start_battle (Boolean) (defaults to: false) —

    coordinates offset for the start of the battle



2583
2584
# File 'docs/5_Battle_02_Visual.rb', line 2583

def reset_position(bank, position, scene, start_battle = false)
end

#retrieve_position(bank, position, scene)

Set the Ballburst position for retrieve animation

Parameters:



2589
2590
# File 'docs/5_Battle_02_Visual.rb', line 2589

def retrieve_position(bank, position, scene)
end

#shader_z_position

Return the basic z position of the sprite shader



2571
2572
# File 'docs/5_Battle_02_Visual.rb', line 2571

def shader_z_position
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


2568
2569
# File 'docs/5_Battle_02_Visual.rb', line 2568

def z=(z)
end