Class UDMFTable

java.lang.Object
net.mtrop.doom.map.udmf.UDMFTable

public class UDMFTable extends Object
This holds a bunch of UDMFObjects for reading Doom information. Also contains a structure for "global" fields in the UDMF, like "namespace".
Author:
Matthew Tropiano
  • Constructor Details

    • UDMFTable

      public UDMFTable()
      Creates a new UDMFTable.
  • Method Details

    • getGlobalFields

      public UDMFObject getGlobalFields()
      Returns:
      the root global fields structure.
    • getObjects

      public UDMFObject[] getObjects(String name)
      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

      public UDMFObject addObject(String name)
      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

      public UDMFObject addObject(String name, UDMFObject object)
      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

      public String[] getAllObjectNames()
      Returns:
      a list of all of the object type names in the table.