Class: Core::Game::Mind

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

Instance Method Summary collapse

Constructor Details

#initializeMind

Returns a new instance of Mind.



11
12
13
# File 'lib/game/mind.rb', line 11

def initialize
  @thoughts = []
end

Instance Method Details

#contrive(thought) ⇒ Object



14
15
16
# File 'lib/game/mind.rb', line 14

def contrive(thought)
  @thoughts.push(thought)
end

#forget(thought) ⇒ Object



17
18
19
# File 'lib/game/mind.rb', line 17

def forget(thought)
  @thoughts.delete(thought)
end

#thoughtsObject



20
21
22
# File 'lib/game/mind.rb', line 20

def thoughts
  return @thoughts
end