AI for Games 1.1.1
Loading...
Searching...
No Matches
game2dai.utils.ObstacleSAXParser Class Reference
Inheritance diagram for game2dai.utils.ObstacleSAXParser:

Public Member Functions

Obstacle[] get ()
 
void startDocument () throws SAXException
 
void endDocument () throws SAXException
 
void startElement (String namespaceURI, String localName, String qName, Attributes attr) throws SAXException
 
void endElement (String namespceURI, String localName, String qName) throws SAXException
 
void characters (char[] ch, int start, int length) throws SAXException
 
 ObstacleSAXParser (File aFile)
 
 ObstacleSAXParser (PApplet app, String fname)
 
 ObstacleSAXParser (String fname)
 
- Public Member Functions inherited from game2dai.utils.EntitySAXParser
 EntitySAXParser (PApplet app, String fname)
 
 EntitySAXParser (String fname)
 
 EntitySAXParser (File aFile)
 

Private Member Functions

void storeElementValue (String elementName, String elementValue)
 

Private Attributes

ArrayList< ObstacleobstacleList = new ArrayList<Obstacle>()
 
String name = ""
 
Vector2D pos = null
 
double radius
 
double x
 
double y
 
double value
 
Obstacle[] obstacles
 

Additional Inherited Members

- Protected Member Functions inherited from game2dai.utils.EntitySAXParser
double getDouble (String s)
 
int getInteger (String s)
 
- Protected Attributes inherited from game2dai.utils.EntitySAXParser
SAXParserFactory factory = SAXParserFactory.newInstance()
 
SAXParser saxParser
 
CharArrayWriter buffer = new CharArrayWriter()
 
String filename
 
InputStream istream = null
 
boolean error = false
 

Detailed Description

Author
Peter

Constructor & Destructor Documentation

◆ ObstacleSAXParser() [1/3]

game2dai.utils.ObstacleSAXParser.ObstacleSAXParser ( File  aFile)
Parameters
aFile

◆ ObstacleSAXParser() [2/3]

game2dai.utils.ObstacleSAXParser.ObstacleSAXParser ( PApplet  app,
String  fname 
)
Parameters
app
fname

◆ ObstacleSAXParser() [3/3]

game2dai.utils.ObstacleSAXParser.ObstacleSAXParser ( String  fname)
Parameters
fname

The documentation for this class was generated from the following file: