abstract class Collider

Direct Known Subclasses

Defined in:

entities/collider.cr

Instance Method Summary

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

abstract def bounds #

[View source]
def collidable : Bool #

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

[View source]
def collide(collider : Collider) : Bool #

[View source]
abstract def collide(collider : Rectangle) : Bool #

[View source]
abstract def collide(collider : Circle) : Bool #

[View source]
abstract def collide(collider : Capsule) : Bool #

[View source]
def collide(collider : Group) : Bool #

[View source]
def handlers : Array(Collider -> Nil) #

[View source]
def handlers=(handlers : Array(Collider -> _)) #

[View source]
def load #

[View source]
def on(&block : Collider -> Nil) #

[View source]
def trigger(collider) #

[View source]
def unload #

[View source]