com.badlogic.gdx.maps.tiled
Class TiledMapTileLayer.Cell

java.lang.Object
  extended by com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell
Enclosing class:
TiledMapTileLayer

public static class TiledMapTileLayer.Cell
extends Object


Field Summary
static int ROTATE_0
           
static int ROTATE_180
           
static int ROTATE_270
           
static int ROTATE_90
           
 
Constructor Summary
TiledMapTileLayer.Cell()
           
 
Method Summary
 boolean getFlipHorizontally()
           
 boolean getFlipVertically()
           
 int getRotation()
           
 TiledMapTile getTile()
           
 void setFlipHorizontally(boolean flipHorizontally)
          Sets whether to flip the tile horizontally.
 void setFlipVertically(boolean flipVertically)
          Sets whether to flip the tile vertically.
 void setRotation(int rotation)
          Sets the rotation of this cell, in degrees.
 void setTile(TiledMapTile tile)
          Sets the tile to be used for this cell.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROTATE_0

public static final int ROTATE_0
See Also:
Constant Field Values

ROTATE_90

public static final int ROTATE_90
See Also:
Constant Field Values

ROTATE_180

public static final int ROTATE_180
See Also:
Constant Field Values

ROTATE_270

public static final int ROTATE_270
See Also:
Constant Field Values
Constructor Detail

TiledMapTileLayer.Cell

public TiledMapTileLayer.Cell()
Method Detail

getTile

public TiledMapTile getTile()
Returns:
The tile currently assigned to this cell.

setTile

public void setTile(TiledMapTile tile)
Sets the tile to be used for this cell.

Parameters:
tile -

getFlipHorizontally

public boolean getFlipHorizontally()
Returns:
Whether the tile should be flipped horizontally.

setFlipHorizontally

public void setFlipHorizontally(boolean flipHorizontally)
Sets whether to flip the tile horizontally.

Parameters:
flipHorizontally -

getFlipVertically

public boolean getFlipVertically()
Returns:
Whether the tile should be flipped vertically.

setFlipVertically

public void setFlipVertically(boolean flipVertically)
Sets whether to flip the tile vertically.

Parameters:
flipVertically -

getRotation

public int getRotation()
Returns:
The rotation of this cell, in degrees.

setRotation

public void setRotation(int rotation)
Sets the rotation of this cell, in degrees.

Parameters:
rotation -


Copyright © 2013. All Rights Reserved.