Class: UI::ThrowingBallSprite

Inherits:
SpriteSheet show all
Defined in:
docs/4_Systems_000_General_4_UI_Generics.rb

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

[17, 16, 15, 16, 17, 18, 19, 18, 17]

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

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, pokemon_or_item) ⇒ ThrowingBallSprite

Create a new ThrowingBallSprite

Parameters:



852
853
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 852

def initialize(viewport, pokemon_or_item)
end

Instance Method Details

#ball_offset_yInteger

Get the ball offset y in order to make it the same position as the Pokemon sprite

Returns:

  • (Integer)


880
881
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 880

def ball_offset_y
end

#break_progression=(progression)

Function that adjust the sy depending on the progression of the “break” animation

Parameters:

  • progression (Float)


872
873
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 872

def break_progression=(progression)
end

#caught_progression=(progression)

Function that adjust the sy depending on the progression of the “caught” animation

Parameters:

  • progression (Float)


876
877
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 876

def caught_progression=(progression)
end

#close_progression=(progression)

Function that adjust the sy depending on the progression of the “close” animation

Parameters:

  • progression (Float)


864
865
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 864

def close_progression=(progression)
end

#move_progression=(progression)

Function that adjust the sy depending on the progression of the “move” animation

Parameters:

  • progression (Float)


868
869
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 868

def move_progression=(progression)
end

#open_progression=(progression)

Function that adjust the sy depending on the progression of the “open” animation

Parameters:

  • progression (Float)


860
861
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 860

def open_progression=(progression)
end

#throw_progression=(progression)

Function that adjust the sy depending on the progression of the “throw” animation

Parameters:

  • progression (Float)


856
857
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 856

def throw_progression=(progression)
end

#trainer_offset_yInteger

Get the ball offset y in order to make it look like being in trainer’s hand

Returns:

  • (Integer)


884
885
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 884

def trainer_offset_y
end