Class: UI::ThrowingBallSprite
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::ThrowingBallSprite
- 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
Attributes inherited from LiteRGSS::ShaderedSprite
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
-
#ball_offset_y ⇒ Integer
Get the ball offset y in order to make it the same position as the Pokemon sprite.
-
#break_progression=(progression)
Function that adjust the sy depending on the progression of the “break” animation.
-
#caught_progression=(progression)
Function that adjust the sy depending on the progression of the “caught” animation.
-
#close_progression=(progression)
Function that adjust the sy depending on the progression of the “close” animation.
-
#initialize(viewport, pokemon_or_item) ⇒ ThrowingBallSprite
constructor
Create a new ThrowingBallSprite.
-
#move_progression=(progression)
Function that adjust the sy depending on the progression of the “move” animation.
-
#open_progression=(progression)
Function that adjust the sy depending on the progression of the “open” animation.
-
#throw_progression=(progression)
Function that adjust the sy depending on the progression of the “throw” animation.
-
#trainer_offset_y ⇒ Integer
Get the ball offset y in order to make it look like being in trainer’s hand.
Methods inherited from SpriteSheet
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
Constructor Details
#initialize(viewport, pokemon_or_item) ⇒ ThrowingBallSprite
Create a new ThrowingBallSprite
852 853 |
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 852 def initialize(, pokemon_or_item) end |
Instance Method Details
#ball_offset_y ⇒ Integer
Get the ball offset y in order to make it the same position as the Pokemon sprite
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
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
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
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
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
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
856 857 |
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 856 def throw_progression=(progression) end |
#trainer_offset_y ⇒ Integer
Get the ball offset y in order to make it look like being in trainer’s hand
884 885 |
# File 'docs/4_Systems_000_General_4_UI_Generics.rb', line 884 def trainer_offset_y end |