class WAD::EnDoom

Overview

The colorful screen shown when Doom exits.

Included Modules

Defined in:

wa-cr/wad/wad-data/texture.cr
write.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module WritingAdditions::EnDoom

write(file : String | Path) : UInt32
write(io : IO) : UInt32
write

Constructor Detail

def self.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")

def self.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 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

Instance Method Detail

def characters : Array(EnDoomChars) #

An array of all the characters in the EnDoom


def characters=(characters : Array(EnDoomChars)) #

An array of all the characters in the EnDoom


def clone #

Returns a copy of self with all instance variables cloned.