class Gsw::Move

Defined in:

gsw/units/actions/move.cr

Constructors

Instance Method Summary

Instance methods inherited from class Gsw::Action

perform(_frame_time) perform

Constructor methods inherited from class Gsw::Action

new(unit : Unit) new

Constructor Detail

def self.new(unit : Unit, target : Vector) #

[View source]

Instance Method Detail

def direction : Vector #

[View source]
def distance : Int32 | Float32 | Float64 #

[View source]
def initial : Vector #

[View source]
def perform(frame_time) #

[View source]
def performing : Bool #

[View source]
def target : Vector #

[View source]
def unit : Unit #

[View source]