org.newdawn.slick.tiled
Class TiledMap.GroupObject

java.lang.Object
  extended by org.newdawn.slick.tiled.TiledMap.GroupObject
Enclosing class:
TiledMap

protected class TiledMap.GroupObject
extends java.lang.Object

An object from a object-group on the map

Author:
kulpae

Field Summary
 int height
          The height of this object
 int index
          The index of this object
 java.lang.String name
          The name of this object - read from the XML
 java.util.Properties props
          the properties of this group
 java.lang.String type
          The type of this object - read from the XML
 int width
          The width of this object
 int x
          The x-coordinate of this object
 int y
          The y-coordinate of this object
 
Constructor Summary
TiledMap.GroupObject(org.w3c.dom.Element element)
          Create a new group based on the XML definition
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

public int index
The index of this object


name

public java.lang.String name
The name of this object - read from the XML


type

public java.lang.String type
The type of this object - read from the XML


x

public int x
The x-coordinate of this object


y

public int y
The y-coordinate of this object


width

public int width
The width of this object


height

public int height
The height of this object


props

public java.util.Properties props
the properties of this group

Constructor Detail

TiledMap.GroupObject

public TiledMap.GroupObject(org.w3c.dom.Element element)
                     throws SlickException
Create a new group based on the XML definition

Parameters:
element - The XML element describing the layer
Throws:
SlickException - Indicates a failure to parse the XML group


Copyright © 2006 New Dawn Software. All Rights Reserved.