Class: RTanque::Bot::Turret

Inherits:
Object
  • Object
show all
Extended by:
NormalizedAttr
Includes:
Movable
Defined in:
lib/rtanque/bot/turret.rb

Constant Summary

LENGTH =
Configuration.turret.length

Constants included from NormalizedAttr

NormalizedAttr::MAX_DELTA

Instance Method Summary collapse

Methods included from NormalizedAttr

attr_normalized, normalized_attrs

Methods included from Movable

#arena, #arena=, #bound_to_arena, #dead?, #heading, #heading=, #position, #position=, #speed, #speed=, #tick, #update_position

Constructor Details

#initialize(heading) ⇒ Turret

Returns a new instance of Turret



9
10
11
# File 'lib/rtanque/bot/turret.rb', line 9

def initialize(heading)
  @heading = heading
end