org.jagatoo.loaders.models.bsp
Class WADFile

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean containsResource(java.lang.String resName)
           
 void exportResource(java.lang.String resName, java.lang.String filename)
           
 int getLumpCount()
           
 java.io.BufferedInputStream getResourceAsStream(java.lang.String resName)
           
 java.lang.String getWADFilename()
           
 java.lang.String[] getWADResources()
           
 java.lang.String getWadType()
           
 AbstractTexture[] readSkyTextures(java.lang.String resName, AppearanceFactory appFactory, java.net.URL baseURL, BSPEntitiesParser.BSPEntity[] entities)
           
 AbstractTexture[] readTexture(java.lang.String resName, AppearanceFactory appFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WADFile

public WADFile(java.net.URL wadResource)
        throws java.io.IOException,
               IncorrectFormatException,
               ParsingException
Throws:
java.io.IOException
IncorrectFormatException
ParsingException
Method Detail

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