class Core::Game::MotionGoal

Attributes

dx[R]
dy[R]
state[RW]
x[R]
y[R]

Public Class Methods

new(dx, dy, x, y) click to toggle source
Calls superclass method Core::Game::Goal::new
# File lib/game/npc/goal.rb, line 27
def initialize(dx, dy, x, y)
  super()
  @dx, @dy = dx, dy
  @x, @y = x, y
end

Public Instance Methods

recalc() click to toggle source
# File lib/game/npc/goal.rb, line 32
def recalc
  @state = :recalc
end