class SfmlBook::Chapter3::Entity

Direct Known Subclasses

Defined in:

chapter3/entity.cr

Instance Method Summary

Instance methods inherited from class SfmlBook::Chapter3::SceneNode

attach(node : SceneNode) attach, detach(node : SceneNode) detach, draw(target : SF::RenderTarget, states : SF::RenderStates) draw, draw_children(target : SF::RenderTarget, states : SF::RenderStates) draw_children, draw_current(target : SF::RenderTarget, states : SF::RenderStates) draw_current, parent : SceneNode | Nil parent, parent=(parent : SceneNode | Nil) parent=, update(delta : SF::Time) update, update_children(delta : SF::Time) update_children, update_current(delta : SF::Time) update_current, world_transform world_transform

Constructor methods inherited from class SfmlBook::Chapter3::SceneNode

new new

Instance Method Detail

def update_current(delta : SF::Time) #

[View source]
def velocity : SF::Vector2(Float32) #

[View source]
def velocity=(velocity : SF::Vector2 | Tuple) #

[View source]