class

WAD::EnDoom

Inherits WritingAdditions::EnDoom < Reference < Object

The colorful screen shown when Doom exits.

Constructors

parse(filename : String | Path) : EnDoom

Parses a endoom file given the filename

Opens a endoom file and parses it:

my_endoom = WAD::EnDoom.parse("Path/To/EnDoom")
parse(io : IO) : 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 methods

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

Instance methods

characters

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.

Nested types