class SfmlBook::Chapter4::Entity

Direct Known Subclasses

Defined in:

chapter4/entity.cr

Instance Method Summary

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

attach(node : SceneNode) attach, category category, 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, on_command(command : Command, delta : SF::Time) on_command, 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::Chapter4::SceneNode

new new

Instance Method Detail

def accelerate(velocity : SF::Vector2 | Tuple) #

[View source]
def update_current(delta : SF::Time) #

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

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

[View source]