Class: RTanque::Bot::Radar::Reflection

Inherits:
Struct
  • Object
show all
Defined in:
lib/rtanque/bot/radar.rb

Overview

A Reflection is the information obtained for a bot detected by RTanque::Bot::Radar

Instance Attribute Summary collapse

Instance Attribute Details

#distanceFloat (readonly)



15
16
17
# File 'lib/rtanque/bot/radar.rb', line 15

def distance
  @distance
end

#headingRTanque::Heading (readonly)



15
16
17
# File 'lib/rtanque/bot/radar.rb', line 15

def heading
  @heading
end

#nameString (readonly)



15
16
17
# File 'lib/rtanque/bot/radar.rb', line 15

def name
  @name
end