class Enemy

Included Modules

Defined in:

entities/enemy.cr

Constant Summary

INVULN_TIME = 0.2

Instance Method Summary

Instance methods inherited from module Physical

collider collider, collider=(collider) collider=, load load, on_ceiling? on_ceiling?, on_ground? on_ground?, on_left_wall? on_left_wall?, on_right_wall? on_right_wall?, update update, velocity velocity, velocity=(velocity) velocity=

Instance methods inherited from class Entity

add(entity : Entity) add, children : Array(Entity) children, children=(children : Array(Entity)) children=, draw(target : SF::RenderTarget, states : SF::RenderStates) draw, finalize finalize, load load, offset : Proc(Vector) offset, offset=(offset : Proc(Vector)) offset=, owner : Entity | Nil owner, owner=(owner : Entity | Nil) owner=, position position, remove(entity : Entity) remove, render(target, states) render, unload unload, update : Bool update

Constructor methods inherited from class Entity

new new

Instance Method Detail

def health : Float64 #

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

[View source]
def hurtbox : Hurtbox #

[View source]
def hurtbox=(hurtbox : Hurtbox) #

[View source]
def invuln_time : Float64 #

[View source]
def load #

[View source]
def max_health : Float64 #

[View source]
def update #

[View source]
def weight : Float64 #

[View source]