Package | Description |
---|---|
org.cell2d | |
org.cell2d.space | |
org.cell2d.space.map |
Modifier and Type | Class and Description |
---|---|
class |
AnimationInstance
An AnimationInstance is an instance of an Animation that represents a
point in the Animation and rates at which that point progresses through the
Animation.
|
class |
Sprite
A Sprite is a static image that can be drawn to a Graphics context.
|
Modifier and Type | Method and Description |
---|---|
Drawable |
Animatable.getInstance()
Returns a Drawable instantiation of this Animatable.
|
Drawable |
Animation.getInstance()
Returns a Drawable instantiation of this Animation - that is, a new
AnimationInstance of this Animation, with its indices and speeds at each
level starting at 0.
|
Drawable |
Sprite.getInstance()
Returns a Drawable instantiation of this Sprite - which is simply this
Sprite itself, since Sprites are already Drawables.
|
Modifier and Type | Method and Description |
---|---|
Drawable |
SpaceObject.getAppearance()
Returns this SpaceObject's appearance.
|
Drawable |
DrawableSpaceLayer.getDrawable()
Returns the Drawable that this DrawableSpaceLayer displays.
|
Modifier and Type | Method and Description |
---|---|
void |
SpaceObject.setAppearance(Drawable appearance)
Sets this SpaceObject's appearance to the specified Drawable.
|
void |
DrawableSpaceLayer.setDrawable(Drawable drawable)
Sets the Drawable that this DrawableSpaceLayer displays to the specified
Drawable.
|
Constructor and Description |
---|
DrawableSpaceLayer(Drawable drawable,
int repeatX,
int repeatY,
long parallaxX,
long parallaxY,
long parallaxOriginX,
long parallaxOriginY)
Constructs a DrawableSpaceLayer.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayTileGrid
An ArrayTileGrid is a type of TileGrid that stores its tile data in a
rectangular two-dimensional array.
|
class |
HashTileGrid
A HashTileGrid is a type of TileGrid that stores its tile data in HashMaps
with grid locations as keys.
|
class |
TileGrid
A TileGrid is a Drawable that displays a rectangular grid of other
Drawables, called tiles.
|
Modifier and Type | Method and Description |
---|---|
Drawable |
ArrayTileGrid.getTile(int column,
int row) |
Drawable |
HashTileGrid.getTile(int column,
int row) |
abstract Drawable |
TileGrid.getTile(int column,
int row)
Returns the tile at the specified location in this TileGrid, or null if
there is none.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ArrayTileGrid.setTile(int column,
int row,
Drawable tile) |
boolean |
HashTileGrid.setTile(int column,
int row,
Drawable tile) |
abstract boolean |
TileGrid.setTile(int column,
int row,
Drawable tile)
Sets the tile at the specified location in this TileGrid to the specified
Drawable.
|