Class: Doom::Render::VisibleSprite

Inherits:
Struct
  • Object
show all
Defined in:
lib/doom/render/renderer.rb

Overview

VisibleSprite stores sprite data for sorting and rendering Struct is faster than Hash for fixed-field data

Instance Attribute Summary collapse

Instance Attribute Details

#distObject

Returns the value of attribute dist

Returns:

  • (Object)

    the current value of dist



30
31
32
# File 'lib/doom/render/renderer.rb', line 30

def dist
  @dist
end

#screen_xObject

Returns the value of attribute screen_x

Returns:

  • (Object)

    the current value of screen_x



30
31
32
# File 'lib/doom/render/renderer.rb', line 30

def screen_x
  @screen_x
end

#spriteObject

Returns the value of attribute sprite

Returns:

  • (Object)

    the current value of sprite



30
31
32
# File 'lib/doom/render/renderer.rb', line 30

def sprite
  @sprite
end

#thingObject

Returns the value of attribute thing

Returns:

  • (Object)

    the current value of thing



30
31
32
# File 'lib/doom/render/renderer.rb', line 30

def thing
  @thing
end

#view_xObject

Returns the value of attribute view_x

Returns:

  • (Object)

    the current value of view_x



30
31
32
# File 'lib/doom/render/renderer.rb', line 30

def view_x
  @view_x
end

#view_yObject

Returns the value of attribute view_y

Returns:

  • (Object)

    the current value of view_y



30
31
32
# File 'lib/doom/render/renderer.rb', line 30

def view_y
  @view_y
end