class Gingham::Actor
Attributes
jump_power[RW]
move_power[RW]
move_status[RW]
move_steps[RW]
team_id[RW]
waypoint[RW]
weight[RW]
Public Class Methods
new(waypoint, weight = 100, team_id = 0, move_power = 999, jump_power = 999)
click to toggle source
# File lib/gingham/actor.rb, line 9 def initialize(waypoint, weight = 100, team_id = 0, move_power = 999, jump_power = 999) @waypoint = waypoint @weight = weight @team_id = team_id @move_status = Gingham::MoveStatus::DEFAULT @move_power = move_power @jump_power = jump_power end
Public Instance Methods
move_end?()
click to toggle source
# File lib/gingham/actor.rb, line 18 def move_end? @move_status == Gingham::MoveStatus::FINISHED || @move_status == Gingham::MoveStatus::STOPPED end