Package net.mtrop.doom.map.udmf
Class UDMFTable
java.lang.Object
net.mtrop.doom.map.udmf.UDMFTable
This holds a bunch of
UDMFObject
s for reading Doom information.
Also contains a structure for "global" fields in the UDMF, like "namespace".- Author:
- Matthew Tropiano
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds an object of a particular type to this table.addObject
(String name, UDMFObject object) Adds an object of a particular type name to this table.String[]
getObjects
(String name) Returns all objects of a specific type into an array.
-
Constructor Details
-
UDMFTable
public UDMFTable()Creates a new UDMFTable.
-
-
Method Details
-
getGlobalFields
- Returns:
- the root global fields structure.
-
getObjects
Returns all objects of a specific type into an array. The names are case-insensitive.- Parameters:
name
- the name of the structures to retrieve.- Returns:
- the queue of structures with the matching name in the order that they were added to the structure. If there are none, an empty array is returned.
-
addObject
Adds an object of a particular type to this table. Keep in mind that the order in which these are added is important.- Parameters:
name
- the name of this type of structure.- Returns:
- a reference to the new structure created.
-
addObject
Adds an object of a particular type name to this table. Keep in mind that the order in which these are added is important.- Parameters:
name
- the name of this type of structure.object
- the object to add.- Returns:
- a reference to the added structure.
-
getAllObjectNames
- Returns:
- a list of all of the object type names in the table.
-