module SpaceInvaders::Mesurable
Attributes
x_position[RW]
y_position[RW]
Public Instance Methods
height()
click to toggle source
# File lib/space_invaders/behaviors/mesurable.rb, line 13 def height @image.height end
width()
click to toggle source
# File lib/space_invaders/behaviors/mesurable.rb, line 9 def width @image.width end
x_middle()
click to toggle source
# File lib/space_invaders/behaviors/mesurable.rb, line 5 def x_middle @x_position + @image.width/2 end