Class: Core::Game::Goal
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Goal
constructor
A new instance of Goal.
- #recalc ⇒ Object
- #restart ⇒ Object
- #setup ⇒ Object
- #state ⇒ Object
Constructor Details
#initialize ⇒ Goal
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
#recalc ⇒ Object
19 20 21 |
# File 'lib/game/npc/goal.rb', line 19 def recalc restart end |
#restart ⇒ Object
16 17 18 |
# File 'lib/game/npc/goal.rb', line 16 def restart @state = :before end |
#setup ⇒ Object
10 11 12 |
# File 'lib/game/npc/goal.rb', line 10 def setup @state = :progress end |
#state ⇒ Object
13 14 15 |
# File 'lib/game/npc/goal.rb', line 13 def state return @state end |