Class: BattleUI::PokemonSprite3D
- Inherits:
-
PokemonSprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- PokemonSprite
- BattleUI::PokemonSprite3D
- Defined in:
- docs/5_Battle_01_Scene.rb
Overview
Sprite of a Pokemon in the battle when BATTLE_CAMERA_3D is true Sprite3D calculates Coordinates from the center of the Viewport
Constant Summary collapse
- ANIMATION_DURATION =
Standard duration of the animations
0.75
Constants inherited from PokemonSprite
BattleUI::PokemonSprite::DELTA_DEATH_Y, BattleUI::PokemonSprite::STATUS_SE, BattleUI::PokemonSprite::STATUS_TONE
Instance Attribute Summary
Attributes inherited from PokemonSprite
#animation_handler, #animation_tone, #bank, #pokemon, #position, #scene, #selected, #stop_gif_animation, #stop_status_tone, #temporary_substitute_overwrite
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
-
#follower_go_in_animation
Display immediatly the Follower in the battle (only used in transition in 3D).
-
#go_in_animation(start_battle = false) ⇒ Yuki::AnimationMixin
Creates the go_in animation (Exiting the ball).
-
#go_out_animation ⇒ Yuki::AnimationMixin
Creates the go_out animation (Entering the ball if not KO, shading out if KO).
-
#initialize(viewport, scene, camera, camera_positionner) ⇒ PokemonSprite3D
constructor
Create a new PokemonSprite.
-
#reset_zoom
Reset the zoom of the sprite.
-
#safari_go_in_animation ⇒ Yuki::AnimationMixin
Creates the go_in animation of a Safari Battle.
-
#shader_z_position
Return the basic z position of the battler.
-
#shadow
Return the shadow characteristic of the PokemonSprite3D.
-
#sprite_zoom ⇒ Integer
Pokemon sprite zoom.
-
#z=(z)
Set the z position of the sprite.
-
#zoom=(zoom)
Set the zoom of the sprite.
-
#zoom_x=(zoom)
Set the zoom_x of the sprite.
-
#zoom_y=(zoom)
Set the zoom_y of the sprite.
Methods inherited from PokemonSprite
#bitmap=, #center_camera, #change_stat_animation, #create_animation, #cry, #done?, #flee_animation, #opacity=, #remove_tone_animation, #reset_tone_status, #set_origin, #set_position, #set_tone_status, #set_tone_to, #shiny_animation, #sprite_zoom_battle_animation, #status_animation, #substitute_animations_speed, #switch_from_substitute_animation, #switch_to_substitute_animation, #switch_to_substitute_sprite, #under_substitute_effect?, #update, #visible=, #x=, #y=
Methods included from Shader::CreatureShaderLoader
#find_shader_id, #load_shader, #load_shader_properties
Methods included from MultiplePosition
Methods included from GoingInOut
#animation_handler, #go_in, #go_out, #in?, #out?
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
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, scene, camera, camera_positionner) ⇒ PokemonSprite3D
Create a new PokemonSprite
2133 2134 |
# File 'docs/5_Battle_01_Scene.rb', line 2133 def initialize(, scene, camera, camera_positionner) end |
Instance Method Details
#follower_go_in_animation
Display immediatly the Follower in the battle (only used in transition in 3D)
2174 2175 |
# File 'docs/5_Battle_01_Scene.rb', line 2174 def follower_go_in_animation end |
#go_in_animation(start_battle = false) ⇒ Yuki::AnimationMixin
Creates the go_in animation (Exiting the ball)
2163 2164 |
# File 'docs/5_Battle_01_Scene.rb', line 2163 def go_in_animation(start_battle = false) end |
#go_out_animation ⇒ Yuki::AnimationMixin
Creates the go_out animation (Entering the ball if not KO, shading out if KO)
2171 2172 |
# File 'docs/5_Battle_01_Scene.rb', line 2171 def go_out_animation end |
#reset_zoom
Reset the zoom of the sprite
2146 2147 |
# File 'docs/5_Battle_01_Scene.rb', line 2146 def reset_zoom end |
#safari_go_in_animation ⇒ Yuki::AnimationMixin
Creates the go_in animation of a Safari Battle
2167 2168 |
# File 'docs/5_Battle_01_Scene.rb', line 2167 def safari_go_in_animation end |
#shader_z_position
Return the basic z position of the battler
2140 2141 |
# File 'docs/5_Battle_01_Scene.rb', line 2140 def shader_z_position end |
#shadow
Return the shadow characteristic of the PokemonSprite3D
2143 2144 |
# File 'docs/5_Battle_01_Scene.rb', line 2143 def shadow end |
#sprite_zoom ⇒ Integer
Pokemon sprite zoom
2178 2179 |
# File 'docs/5_Battle_01_Scene.rb', line 2178 def sprite_zoom end |
#z=(z)
Set the z position of the sprite
2137 2138 |
# File 'docs/5_Battle_01_Scene.rb', line 2137 def z=(z) end |
#zoom=(zoom)
Set the zoom of the sprite
2150 2151 |
# File 'docs/5_Battle_01_Scene.rb', line 2150 def zoom=(zoom) end |
#zoom_x=(zoom)
Set the zoom_x of the sprite
2154 2155 |
# File 'docs/5_Battle_01_Scene.rb', line 2154 def zoom_x=(zoom) end |
#zoom_y=(zoom)
Set the zoom_y of the sprite
2158 2159 |
# File 'docs/5_Battle_01_Scene.rb', line 2158 def zoom_y=(zoom) end |