class WAD::EnDoom
- WAD::EnDoom
- Reference
- Object
Overview
The colorful screen shown when Doom exits.
Included Modules
Defined in:
wa-cr/wad/wad-data/texture.crwrite.cr
Constructors
-
.parse(filename : String | Path) : EnDoom
Parses a endoom file given the filename
-
.parse(io : IO) : EnDoom
Parses a endoom file given the io
Class Method Summary
-
.is_endoom?(name : String)
Checks to see if name is "ENDDOOM"
Instance Method Summary
-
#characters : Array(EnDoomChars)
An array of all the characters in the EnDoom
-
#characters=(characters : Array(EnDoomChars))
An array of all the characters in the EnDoom
-
#clone
Returns a copy of
self
with all instance variables cloned.
Instance methods inherited from module WritingAdditions::EnDoom
write(file : String | Path) : UInt32write(io : IO) : UInt32 write
Constructor Detail
Parses a endoom file given the filename
Opens a endoom file and parses it:
my_endoom = WAD::EnDoom.parse("Path/To/EnDoom")
Parses a endoom file given the io
Opens a endoom io and parses it:
File.open("Path/To/EnDoom") do |file|
my_endoom = WAD::EnDoom.parse(file)
end
Class Method Detail
def self.is_endoom?(name : String)
#
Checks to see if name is "ENDDOOM"
Returns true if the name is a endoom:
endoom_name = "ENDOOM"
if WAD::EnDoom.is_endoom?(endoom_name)
puts "Is a EnDoom"
else
puts "Is not a EnDoom"
end