Class: Doom::Wad::Colormap
- Inherits:
-
Object
- Object
- Doom::Wad::Colormap
- Defined in:
- lib/doom/wad/colormap.rb
Constant Summary collapse
- MAPS =
34- MAP_SIZE =
256
Instance Attribute Summary collapse
-
#maps ⇒ Object
readonly
Returns the value of attribute maps.
Class Method Summary collapse
Instance Method Summary collapse
- #[](map_index) ⇒ Object
-
#initialize(maps) ⇒ Colormap
constructor
A new instance of Colormap.
Constructor Details
#initialize(maps) ⇒ Colormap
Returns a new instance of Colormap.
11 12 13 |
# File 'lib/doom/wad/colormap.rb', line 11 def initialize(maps) @maps = maps end |
Instance Attribute Details
#maps ⇒ Object (readonly)
Returns the value of attribute maps.
9 10 11 |
# File 'lib/doom/wad/colormap.rb', line 9 def maps @maps end |
Class Method Details
Instance Method Details
#[](map_index) ⇒ Object
15 16 17 |
# File 'lib/doom/wad/colormap.rb', line 15 def [](map_index) @maps[map_index] end |