Class: ShatteredModel::Base
- Inherits:
-
ShatteredSupport::Base
- Object
- ShatteredSupport::Base
- ShatteredModel::Base
- Defined in:
- lib/base.rb
Overview
Models encompass all of the game play logic and the game specific data.
Models are useful for unit tests and for making game rules. They are where all logic (AI/collisions/etc) go.
Instance Method Summary collapse
-
#fuzzy_logic=(file) ⇒ Object
:nodoc:.
-
#update_fuzzy_logic ⇒ Object
:nodoc:.
Instance Method Details
#fuzzy_logic=(file) ⇒ Object
:nodoc:
19 20 21 22 |
# File 'lib/base.rb', line 19 def fuzzy_logic=(file) #:nodoc: @fuzzy_logic = FuzzyLogic.new @fuzzy_logic.parse_fuzzy_file(File.dirname(__FILE__)+"/#{file}") end |
#update_fuzzy_logic ⇒ Object
:nodoc:
23 24 25 |
# File 'lib/base.rb', line 23 def update_fuzzy_logic #:nodoc: @fuzzy_logic.update(self) end |