class Actor

Defined in:

entities/boxes.cr

Constant Summary

LEEWAY = 2_f32

Constructors

Instance Method Summary

Instance methods inherited from class Collider::Rectangle

bounds bounds, collide(collider : Rectangle) : Bool
collide(collider : Circle) : Bool
collide(collider : Capsule) : Bool
collide
, load load, render(target, states) render, size : SF::Vector2(Float32) size, size=(size : SF::Vector2(Float32)) size=

Constructor methods inherited from class Collider::Rectangle

new(position, size : SF::Vector2(Float32)) new

Instance methods inherited from class Collider

bounds bounds, collidable : Bool collidable, collidable=(collidable : Bool) collidable=, collide(collider : Collider) : Bool
collide(collider : Rectangle) : Bool
collide(collider : Circle) : Bool
collide(collider : Capsule) : Bool
collide(collider : Group) : Bool
collide
, handlers : Array(Collider -> Nil) handlers, handlers=(handlers : Array(Collider -> _)) handlers=, load load, on(&block : Collider -> Nil) on, trigger(collider) trigger, unload unload

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

Constructor Detail

def self.new(owner, a, b) #

[View source]

Instance Method Detail

def collision_direction : Actor::Direction #

[View source]
def collision_direction=(collision_direction : Actor::Direction) #

[View source]
def tangent : Bool #

[View source]
def update #

[View source]