org.jagatoo.loaders.models.bsp
Class WADFile
java.lang.Object
org.jagatoo.loaders.models.bsp.WADFile
public class WADFile
- extends java.lang.Object
Represents a Half-Life WAD source file.
|
Constructor Summary |
WADFile(java.net.URL wadResource)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WADFile
public WADFile(java.net.URL wadResource)
throws java.io.IOException,
IncorrectFormatException,
ParsingException
- Throws:
java.io.IOException
IncorrectFormatException
ParsingException
getWADFilename
public final java.lang.String getWADFilename()
getWadType
public final java.lang.String getWadType()
getLumpCount
public final int getLumpCount()
getWADResources
public final java.lang.String[] getWADResources()
containsResource
public final boolean containsResource(java.lang.String resName)
getResourceAsStream
public final java.io.BufferedInputStream getResourceAsStream(java.lang.String resName)
throws java.io.IOException
- Throws:
java.io.IOException
exportResource
public final void exportResource(java.lang.String resName,
java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
readTexture
public final AbstractTexture[] readTexture(java.lang.String resName,
AppearanceFactory appFactory)
throws java.io.IOException
- Throws:
java.io.IOException
readSkyTextures
public final AbstractTexture[] readSkyTextures(java.lang.String resName,
AppearanceFactory appFactory,
java.net.URL baseURL,
BSPEntitiesParser.BSPEntity[] entities)
throws java.io.IOException
- Throws:
java.io.IOException