Class: Yuki::Particle_Object
- Defined in:
- docs/01450_Systems_00003_Map_Engine.rb
Constant Summary collapse
- ACTION_HANDLERS =
List of action handler to know how to compute the current frame of the particle
{}
- ACTION_HANDLERS_ORDER =
Order of the particle handlers
[]
- TILE_ZOOM =
Zoom of a tile to adjust coordinate
Configs.display.tilemap_settings.character_tile_zoom
Instance Attribute Summary collapse
-
#disposed ⇒ Boolean
(also: #disposed?)
readonly
if the particle is disposed.
Class Method Summary collapse
-
.add_handler(name, before = nil, &block)
Add a new action handler.
Instance Method Summary collapse
-
#dispose
Dispose the particle.
-
#exectute_action(action)
Execute an animation instruction.
-
#initialize(character, data, on_tp = false, params = {}) ⇒ Particle_Object
constructor
Create a particle object.
-
#screen_z
Function that process screen z depending on original screen_y (without zoom).
-
#update
Update the particle animation.
-
#update_default_flow(data) ⇒ Boolean
Update the default particle state flow.
-
#update_particle_info(data) ⇒ Boolean
Update the particle info.
-
#update_radius_flow(data) ⇒ Boolean
Update the radius particle kind flow.
-
#update_sprite_position
Update the position of the particle sprite.
-
#x ⇒ Integer
Get the real x of the particle on the map.
-
#y ⇒ Integer
Get the real y of the particle on the map.
Constructor Details
#initialize(character, data, on_tp = false, params = {}) ⇒ Particle_Object
Create a particle object
619 620 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 619 def initialize(character, data, on_tp = false, params = {}) end |
Instance Attribute Details
#disposed ⇒ Boolean (readonly) Also known as: disposed?
if the particle is disposed
592 593 594 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 592 def disposed @disposed end |
Class Method Details
.add_handler(name, before = nil, &block)
Add a new action handler
554 555 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 554 def self.add_handler(name, before = nil, &block) end |
Instance Method Details
#dispose
Dispose the particle
658 659 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 658 def dispose end |
#exectute_action(action)
Execute an animation instruction
649 650 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 649 def exectute_action(action) end |
#screen_z
Function that process screen z depending on original screen_y (without zoom)
655 656 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 655 def screen_z end |
#update
Update the particle animation
622 623 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 622 def update end |
#update_default_flow(data) ⇒ Boolean
Update the default particle state flow
640 641 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 640 def update_default_flow(data) end |
#update_particle_info(data) ⇒ Boolean
Update the particle info
635 636 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 635 def update_particle_info(data) end |
#update_radius_flow(data) ⇒ Boolean
Update the radius particle kind flow
645 646 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 645 def update_radius_flow(data) end |
#update_sprite_position
Update the position of the particle sprite
652 653 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 652 def update_sprite_position end |
#x ⇒ Integer
Get the real x of the particle on the map
626 627 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 626 def x end |
#y ⇒ Integer
Get the real y of the particle on the map
630 631 |
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 630 def y end |