class Hitbox
- Hitbox
- Collider::Capsule
- Collider
- Entity
- SF::Transformable
- Reference
- Object
Defined in:
entities/boxes.crConstructors
Instance Method Summary
- #damage : Float64
- #damage=(damage : Float64)
- #direction
- #direction=(direction : Vector | Nil)
- #time : Float64
- #time=(time : Float64)
- #update
Instance methods inherited from class Collider::Capsule
bounds
bounds,
collide(collider : Circle) : Boolcollide(collider : Rectangle) : Bool
collide(collider : Capsule) : Bool collide, load load, origin1 : SF::Vector2(Float32) origin1, origin1=(origin1 : SF::Vector2(Float32)) origin1=, origin2 : SF::Vector2(Float32) origin2, origin2=(origin2 : SF::Vector2(Float32)) origin2=, radius : Float32 radius, radius=(radius : Float32) radius=, render(target, states) render
Constructor methods inherited from class Collider::Capsule
new(origin1 : SF::Vector2(Float32), origin2 : SF::Vector2(Float32), radius : Float32)
new
Instance methods inherited from class Collider
bounds
bounds,
collidable : Bool
collidable,
collidable=(collidable : Bool)
collidable=,
collide(collider : Collider) : Boolcollide(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