Class: Doom::Render::VisibleSprite
- Inherits:
-
Struct
- Object
- Struct
- Doom::Render::VisibleSprite
- 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
-
#dist ⇒ Object
Returns the value of attribute dist.
-
#screen_x ⇒ Object
Returns the value of attribute screen_x.
-
#sprite ⇒ Object
Returns the value of attribute sprite.
-
#thing ⇒ Object
Returns the value of attribute thing.
-
#view_x ⇒ Object
Returns the value of attribute view_x.
-
#view_y ⇒ Object
Returns the value of attribute view_y.
Instance Attribute Details
#dist ⇒ Object
Returns the value of attribute dist
30 31 32 |
# File 'lib/doom/render/renderer.rb', line 30 def dist @dist end |
#screen_x ⇒ Object
Returns the value of attribute screen_x
30 31 32 |
# File 'lib/doom/render/renderer.rb', line 30 def screen_x @screen_x end |
#sprite ⇒ Object
Returns the value of attribute sprite
30 31 32 |
# File 'lib/doom/render/renderer.rb', line 30 def sprite @sprite end |
#thing ⇒ Object
Returns the value of attribute thing
30 31 32 |
# File 'lib/doom/render/renderer.rb', line 30 def thing @thing end |
#view_x ⇒ Object
Returns the value of attribute view_x
30 31 32 |
# File 'lib/doom/render/renderer.rb', line 30 def view_x @view_x end |
#view_y ⇒ Object
Returns the value of attribute view_y
30 31 32 |
# File 'lib/doom/render/renderer.rb', line 30 def view_y @view_y end |