Interface MapView<V,L,S,E,T>

Type Parameters:
V - the class type for vertices.
L - the class type for linedefs.
S - the class type for sidedefs.
E - the class type for sectors.
T - the class type for things.
All Known Implementing Classes:
DoomMap, HexenMap, UDMFMap

public interface MapView<V,L,S,E,T>
Interface for looking into Doom maps.
Author:
Matthew Tropiano
  • Method Details

    • getVertex

      V getVertex(int i)
      Gets the vertex at a specific index.
      Parameters:
      i - the desired index.
      Returns:
      the vertex at the index, or null if the index is out of range.
    • getVertexCount

      int getVertexCount()
      Returns:
      the amount of vertices in this map.
    • getLinedef

      L getLinedef(int i)
      Gets the linedef at a specific index.
      Parameters:
      i - the desired index.
      Returns:
      the linedef at the index, or null if the index is out of range.
    • getLinedefCount

      int getLinedefCount()
      Returns:
      the amount of linedefs in this map.
    • getSidedef

      S getSidedef(int i)
      Gets the sidedef at a specific index.
      Parameters:
      i - the desired index.
      Returns:
      the sidedef at the index, or null if the index is out of range.
    • getSidedefCount

      int getSidedefCount()
      Returns:
      the amount of sidedefs in this map.
    • getSector

      E getSector(int i)
      Gets the sector at a specific index.
      Parameters:
      i - the desired index.
      Returns:
      the sector at the index, or null if the index is out of range.
    • getSectorCount

      int getSectorCount()
      Returns:
      the amount of sectors in this map.
    • getThing

      T getThing(int i)
      Gets the thing at a specific index.
      Parameters:
      i - the desired index.
      Returns:
      the thing at the index, or null if the index is out of range.
    • getThingCount

      int getThingCount()
      Returns:
      the amount of things in this map.