Class: XenosEnigma::Hit

Inherits:
Object
  • Object
show all
Defined in:
lib/xenos_enigma/hit_collector.rb

Overview

Hit is placeholder for ship detection information

Instance Attribute Summary collapse

Instance Method Summary collapse

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_positionObject

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_positionObject

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_instanceObject

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_startObject

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