Package net.mtrop.doom.map
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.
public interface MapView<V,L,S,E,T>
Interface for looking into Doom maps.
- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptiongetLinedef
(int i) Gets the linedef at a specific index.int
getSector
(int i) Gets the sector at a specific index.int
getSidedef
(int i) Gets the sidedef at a specific index.int
getThing
(int i) Gets the thing at a specific index.int
getVertex
(int i) Gets the vertex at a specific index.int
-
Method Details
-
getVertex
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
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
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
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
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.
-