Class: XenosEnigma::Hit
- Inherits:
-
Object
- Object
- XenosEnigma::Hit
- Defined in:
- lib/xenos_enigma/hit_collector.rb
Overview
Hit is placeholder for ship detection information
Instance Attribute Summary collapse
-
#radar_x_position ⇒ Object
Returns the value of attribute radar_x_position.
-
#radar_y_position ⇒ Object
Returns the value of attribute radar_y_position.
-
#xeno_instance ⇒ Object
Returns the value of attribute xeno_instance.
-
#xeno_y_start ⇒ Object
Returns the value of attribute xeno_y_start.
Instance Method Summary collapse
-
#initialize(xeno_instance, xeno_y_start = 0) ⇒ Hit
constructor
A new instance of Hit.
Constructor Details
#initialize(xeno_instance, xeno_y_start = 0) ⇒ Hit
Returns a new instance of Hit.
57 58 59 60 |
# File 'lib/xenos_enigma/hit_collector.rb', line 57 def initialize(xeno_instance, xeno_y_start = 0) @xeno_instance = xeno_instance @xeno_y_start = xeno_y_start end |
Instance Attribute Details
#radar_x_position ⇒ Object
Returns the value of attribute radar_x_position.
52 53 54 |
# File 'lib/xenos_enigma/hit_collector.rb', line 52 def radar_x_position @radar_x_position end |
#radar_y_position ⇒ Object
Returns the value of attribute radar_y_position.
52 53 54 |
# File 'lib/xenos_enigma/hit_collector.rb', line 52 def radar_y_position @radar_y_position end |
#xeno_instance ⇒ Object
Returns the value of attribute xeno_instance.
52 53 54 |
# File 'lib/xenos_enigma/hit_collector.rb', line 52 def xeno_instance @xeno_instance end |
#xeno_y_start ⇒ Object
Returns the value of attribute xeno_y_start.
52 53 54 |
# File 'lib/xenos_enigma/hit_collector.rb', line 52 def xeno_y_start @xeno_y_start end |