Class: UI::ThrowingBallSprite3D

Overview

Sprite responsive of showing the sprite of the Ball we throw to Pokemon or to release Pokemon

Constant Summary collapse

MOVE_PROGRESSION_CELL =

Array mapping the move progression to the right cell

[11, 12, 13, 12, 11, 14, 15, 16, 15, 14, 0]

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) ⇒ ThrowingBallSprite3D

Create a new ThrowingBallSprite

Parameters:



2437
2438
# File 'docs/5_Battle_02_Visual.rb', line 2437

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)


2449
2450
# File 'docs/5_Battle_02_Visual.rb', line 2449

def ball_z_position(pokemon_or_item)
end

#break_progression=(progression)

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

Parameters:

  • progression (Float)


2479
2480
# File 'docs/5_Battle_02_Visual.rb', line 2479

def break_progression=(progression)
end

#caught_progression=(progression)

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

Parameters:

  • progression (Float)


2483
2484
# File 'docs/5_Battle_02_Visual.rb', line 2483

def caught_progression=(progression)
end

#close_progression=(progression)

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

Parameters:

  • progression (Float)


2471
2472
# File 'docs/5_Battle_02_Visual.rb', line 2471

def close_progression=(progression)
end

#move_progression=(progression)

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

Parameters:

  • progression (Float)


2475
2476
# File 'docs/5_Battle_02_Visual.rb', line 2475

def move_progression=(progression)
end

#open_progression=(progression)

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

Parameters:

  • progression (Float)


2467
2468
# File 'docs/5_Battle_02_Visual.rb', line 2467

def open_progression=(progression)
end

#reset_position(bank, position, scene)

Reset the ball position

Parameters:



2455
2456
# File 'docs/5_Battle_02_Visual.rb', line 2455

def reset_position(bank, position, scene)
end

#shader_z_position

Return the basic z position of the sprite shader



2444
2445
# File 'docs/5_Battle_02_Visual.rb', line 2444

def shader_z_position
end

#throw_progression=(progression)

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

Parameters:

  • progression (Float)


2459
2460
# File 'docs/5_Battle_02_Visual.rb', line 2459

def throw_progression=(progression)
end

#throw_progression_enemy=(progression)

Function that adjust the sy depending on the progression of the "throw" animation (enemy only)

Parameters:

  • progression (Float)


2463
2464
# File 'docs/5_Battle_02_Visual.rb', line 2463

def throw_progression_enemy=(progression)
end

#z=(z)

Set the z position of the sprite

Parameters:

  • z (Numeric)


2441
2442
# File 'docs/5_Battle_02_Visual.rb', line 2441

def z=(z)
end