Class: RTanque::Bot::Brain
- Inherits:
-
Object
- Object
- RTanque::Bot::Brain
- Defined in:
- lib/rtanque/bot/brain.rb
Overview
Commands the associated RTanque::Bot. This class should be inherited from and NAME and #tick! overridden.
See BrainHelper for a useful mixin
Sample bots:
- SeekAndDestroy
- Camper
- Keyboard Special bot controlled by the keyboard
Constant Summary collapse
- NAME =
'bot name'
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#tick! ⇒ Object
abstract
Main logic goes here.
Instance Attribute Details
#arena ⇒ RTanque::Arena (readonly)
23 24 25 |
# File 'lib/rtanque/bot/brain.rb', line 23 def arena @arena end |
#command ⇒ RTanque::Bot::Command
21 |
# File 'lib/rtanque/bot/brain.rb', line 21 attr_accessor :sensors, :command |
#sensors ⇒ RTanque::Bot::Sensors
21 22 23 |
# File 'lib/rtanque/bot/brain.rb', line 21 def sensors @sensors end |