Module: Yuki::Particles
- Defined in:
- docs/4_Systems_003_Map_Engine.rb
Overview
Module that manage the particle display
Constant Summary collapse
- Data =
The particle data
[]
- EMPTY =
The empty actions
{max_counter: 1, loop: false, data: []}
Class Attribute Summary collapse
-
.named ⇒ Hash{ Symbol => Particle_Object }
readonly
Return the list of named particles.
Class Method Summary collapse
-
.add_building(image, x, y, oy = 0, visible_from1 = false, visible_from2 = false) ⇒ Building_Object
Add a building.
-
.add_named_particle(name, character, particle_tag, params = {})
Add a named particle (particle that has a specific flow).
-
.add_parallax(image, x, y, z, zoom_x = 1, zoom_y = 1, opacity = 255, blend_type = 0) ⇒ Parallax_Object
Add a parallax.
-
.add_particle(character, particle_tag, params = {}) ⇒ Particle_Object
Add a particle to the stack.
-
.clean_stack
Request to clean the stack.
-
.dispose
Dispose each particle.
-
.find_particle(terrain_tag, particle_tag)
Function that find the data for a particle according to the terrain_tag & the particle tag.
-
.init(viewport)
Init the particle display on a new viewport.
-
.ready? ⇒ Boolean
Tell if the system is ready to work.
-
.set_on_teleportation(v)
Tell the particle manager the game is warping the player.
-
.update
Update of the particles & stack cleaning if requested.
-
.viewport
Return the viewport of in which the Particles are shown.
Class Attribute Details
.named ⇒ Hash{ Symbol => Particle_Object } (readonly)
Return the list of named particles
825 826 827 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 825 def named @named end |
Class Method Details
.add_building(image, x, y, oy = 0, visible_from1 = false, visible_from2 = false) ⇒ Building_Object
Add a building
806 807 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 806 def add_building(image, x, y, oy = 0, visible_from1 = false, visible_from2 = false) end |
.add_named_particle(name, character, particle_tag, params = {})
Add a named particle (particle that has a specific flow)
784 785 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 784 def add_named_particle(name, character, particle_tag, params = {}) end |
.add_parallax(image, x, y, z, zoom_x = 1, zoom_y = 1, opacity = 255, blend_type = 0) ⇒ Parallax_Object
Add a parallax
796 797 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 796 def add_parallax(image, x, y, z, zoom_x = 1, zoom_y = 1, opacity = 255, blend_type = 0) end |
.add_particle(character, particle_tag, params = {}) ⇒ Particle_Object
Add a particle to the stack
777 778 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 777 def add_particle(character, particle_tag, params = {}) end |
.clean_stack
Request to clean the stack
770 771 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 770 def clean_stack end |
.dispose
Dispose each particle
820 821 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 820 def dispose end |
.find_particle(terrain_tag, particle_tag)
This function will try $game_variables & 0 as terrain_tag if the particle_tag wasn’t found
Function that find the data for a particle according to the terrain_tag & the particle tag
837 838 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 837 def find_particle(terrain_tag, particle_tag) end |
.init(viewport)
Init the particle display on a new viewport
764 765 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 764 def init() end |
.ready? ⇒ Boolean
Tell if the system is ready to work
813 814 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 813 def ready? end |
.set_on_teleportation(v)
Tell the particle manager the game is warping the player. Particle will skip the :enter phase.
817 818 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 817 def set_on_teleportation(v) end |
.update
Update of the particles & stack cleaning if requested
767 768 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 767 def update end |
.viewport
Return the viewport of in which the Particles are shown
809 810 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 809 def end |