Class: Core::Game::Goal

Inherits:
Object show all
Defined in:
lib/game/npc/goal.rb

Direct Known Subclasses

MotionGoal

Instance Method Summary collapse

Constructor Details

#initializeGoal

Returns a new instance of Goal.



7
8
9
# File 'lib/game/npc/goal.rb', line 7

def initialize
  @state = :before
end

Instance Method Details

#recalcObject



19
20
21
# File 'lib/game/npc/goal.rb', line 19

def recalc
  restart
end

#restartObject



16
17
18
# File 'lib/game/npc/goal.rb', line 16

def restart
  @state = :before
end

#setupObject



10
11
12
# File 'lib/game/npc/goal.rb', line 10

def setup
  @state = :progress
end

#stateObject



13
14
15
# File 'lib/game/npc/goal.rb', line 13

def state
  return @state
end