class Gsw::Ship

Defined in:

gsw/units/ship.cr

Constructors

Instance methods inherited from class Gsw::Unit

deselect deselect, draw(parent_x, parent_y) draw, finish finish, move(direction : Vector, frame_time) move, queue(action : Action) queue, rotate_to(target : Vector) rotate_to, select(target : Vector)
select(selection : SelectionBox)
select
, selected? : Bool selected?, sprite : Sprite sprite, update(frame_time) update

Constructor methods inherited from class Gsw::Unit

new(name, x, y) new

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

Constructor methods inherited from class Gsw::Obj

new(x, y, width : Float32 | Int32, height : Float32 | Int32, rotation : Float32 | Float64 | Int32 = 0) new

Constructor Detail

def self.new(x, y) #

[View source]