class Gsw::Unit
Direct Known Subclasses
Defined in:
gsw/units/unit.crConstant Summary
-
SPEED =
100
Constructors
Instance Method Summary
- #deselect
- #draw(parent_x, parent_y)
- #finish
- #move(direction : Vector, frame_time)
- #queue(action : Action)
- #rotate_to(target : Vector)
- #select(target : Vector)
- #select(selection : SelectionBox)
- #selected? : Bool
- #sprite : Sprite
- #update(frame_time)
Instance methods inherited from class Gsw::Obj
collision?(other : Vector)
collision?,
draw(_parent_x, _parent_y)
draw,
height : Int32 | Float32
height,
position : Vector
position,
rotation : Int32 | Float32 | Float64
rotation,
update(_frame_time)
update,
width : Int32 | Float32
width,
x(*args, **options)x(*args, **options, &) x, y(*args, **options)
y(*args, **options, &) y