class PF::Emitter

Defined in:

emitter.cr

Instance Method Summary

Instance methods inherited from class PF::Entity

distance(other : Entity) distance, mass : Float64 mass, mass=(mass : Float64) mass=, position : Vector2(Float64) position, position=(position : Vector2(Float64)) position=, rotation : Float64 rotation, rotation=(rotation : Float64) rotation=, rotation_speed : Float64 rotation_speed, rotation_speed=(rotation_speed : Float64) rotation_speed=, sprite : Sprite | Nil sprite, sprite=(sprite : Sprite | Nil) sprite=, update(dt : Float64) update, velocity : Vector2(Float64) velocity, velocity=(velocity : Vector2(Float64)) velocity=

Constructor methods inherited from class PF::Entity

new(sprite_path : String)
new(sprite : Nil | PF::Sprite = nil)
new

Instance Method Detail

def draw(engine) #

[View source]
def emit_angle : Float64 #

[View source]
def emit_angle=(emit_angle : Float64) #

[View source]
def emit_freq : Float64 #

[View source]
def emit_freq=(emit_freq : Float64) #

[View source]
def emitting : Bool #

[View source]
def emitting=(emitting : Bool) #

[View source]
def generate_particle #

[View source]
def last_emitted : Float64 #

[View source]
def max_age : Float64 #

[View source]
def max_age=(max_age : Float64) #

[View source]
def particles : Array(PF::Particle) #

[View source]
def particles=(particles : Array(PF::Particle)) #

[View source]
def size : Float64 #

[View source]
def size=(size : Float64) #

[View source]
def strength : Float64 #

[View source]
def strength=(strength : Float64) #

[View source]
def update(dt : Float64) #

[View source]