SendableEntityCreator, SendableEntityCreatorTagpublic class TileMap extends java.lang.Object implements SendableEntityCreatorTag
| Modifier and Type | Field | Description |
|---|---|---|
int[] |
background |
|
SimpleList<java.lang.String> |
backgroundNames |
|
static java.lang.String |
ENCODING |
|
int |
height |
|
static java.lang.String |
HEIGHT |
|
SimpleKeyValueList<java.lang.String,SimpleList<TileObject>> |
objects |
|
java.lang.String |
orientation |
|
static java.lang.String |
ORIENTATION |
|
java.lang.String |
renderorder |
|
static java.lang.String |
RENDERORDER |
|
static java.lang.String |
TAG |
|
int |
tileheight |
|
static java.lang.String |
TILEHEIGHT |
|
static java.lang.String |
TILESET_LAYER |
|
static java.lang.String |
TILESET_OBJECTGROUP |
|
static java.lang.String |
TILESET_TILE |
|
int |
tilewidth |
|
static java.lang.String |
TILEWIDTH |
|
java.lang.String |
version |
|
static java.lang.String |
VERSION |
|
int |
width |
|
static java.lang.String |
WIDTH |
NEW, REMOVE, REMOVE_YOU, SIMPLE, UPDATE| Constructor | Description |
|---|---|
TileMap() |
| Modifier and Type | Method | Description |
|---|---|---|
static TileMap |
create(java.lang.String value) |
|
int |
getBackground(int sprite) |
|
SimpleList<TileObject> |
getByName(java.lang.String element) |
|
java.lang.String |
getPath() |
|
Pos |
getPos(int sprite) |
Return the Position of a Sprite
|
java.lang.String[] |
getProperties() |
Gets the properties.
|
java.lang.Object |
getSendableInstance(boolean prototyp) |
Gets the sendable instance.
|
java.lang.String |
getSource() |
|
Pos |
getSpriteBackgroundPos(int ebene,
int backgroundPos) |
Return the Position of the Background Sprite
|
Pos |
getSpritePos(int ebene,
int pos) |
Return the Position of Sprite
|
java.lang.String |
getTag() |
Gets the tag of the XML Entity.
|
java.lang.Object |
getValue(java.lang.Object entity,
java.lang.String attribute) |
Gets the value.
|
int |
length() |
|
boolean |
setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type) |
Sets the value.
|
TileMap |
withPath(java.lang.String value) |
public static final java.lang.String ENCODING
public static final java.lang.String TAG
public static final java.lang.String VERSION
public static final java.lang.String ORIENTATION
public static final java.lang.String RENDERORDER
public static final java.lang.String WIDTH
public static final java.lang.String HEIGHT
public static final java.lang.String TILEWIDTH
public static final java.lang.String TILEHEIGHT
public static final java.lang.String TILESET_TILE
public static final java.lang.String TILESET_LAYER
public static final java.lang.String TILESET_OBJECTGROUP
public java.lang.String version
public java.lang.String orientation
public java.lang.String renderorder
public int width
public int height
public int tilewidth
public int tileheight
public SimpleKeyValueList<java.lang.String,SimpleList<TileObject>> objects
public int[] background
public SimpleList<java.lang.String> backgroundNames
public java.lang.Object getSendableInstance(boolean prototyp)
SendableEntityCreatorgetSendableInstance in interface SendableEntityCreatorprototyp - the prototyppublic java.lang.String getTag()
SendableEntityCreatorTaggetTag in interface SendableEntityCreatorTagpublic java.lang.String[] getProperties()
SendableEntityCreatorgetProperties in interface SendableEntityCreatorpublic Pos getSpriteBackgroundPos(int ebene, int backgroundPos)
ebene - Ebene of backgroundbackgroundPos - Background Positoin 0..npublic Pos getSpritePos(int ebene, int pos)
ebene - Ebene of backgroundpos - The Position 00..npublic int getBackground(int sprite)
public Pos getPos(int sprite)
sprite - the SpriteNumberpublic int length()
public SimpleList<TileObject> getByName(java.lang.String element)
public java.lang.Object getValue(java.lang.Object entity,
java.lang.String attribute)
SendableEntityCreatorgetValue in interface SendableEntityCreatorentity - the entityattribute - the attributepublic boolean setValue(java.lang.Object entity,
java.lang.String attribute,
java.lang.Object value,
java.lang.String type)
SendableEntityCreatorsetValue in interface SendableEntityCreatorentity - the entityattribute - the attributevalue - the valuetype - edit, update or remove operationpublic static TileMap create(java.lang.String value)
public java.lang.String getSource()
public TileMap withPath(java.lang.String value)
public java.lang.String getPath()