public class AnimatedEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.badlogic.gdx.scenes.scene2d.Actor |
actor |
boolean |
animating |
boolean |
doubleWidth |
int |
gridX |
int |
gridY |
Constructor and Description |
---|
AnimatedEntity(com.badlogic.gdx.scenes.scene2d.Actor actor,
int x,
int y) |
AnimatedEntity(com.badlogic.gdx.scenes.scene2d.Actor actor,
int x,
int y,
boolean doubleWidth) |
Modifier and Type | Method and Description |
---|---|
void |
setDirection(squidpony.squidgrid.Direction dir)
Rotates this so that "up" points in the specified direction.
|
void |
setText(java.lang.String text) |
public com.badlogic.gdx.scenes.scene2d.Actor actor
public int gridX
public int gridY
public boolean animating
public boolean doubleWidth
public AnimatedEntity(com.badlogic.gdx.scenes.scene2d.Actor actor, int x, int y)
public AnimatedEntity(com.badlogic.gdx.scenes.scene2d.Actor actor, int x, int y, boolean doubleWidth)
public void setText(java.lang.String text)
public void setDirection(squidpony.squidgrid.Direction dir)
TextCellFactory.makeDirectionMarker(Color)
,
TextCellFactory.makeDirectionMarker(Collection, float, boolean)
, or one of the directionMarker methods
in SquidPanel or SquidLayers, since those produce an Image (or ColorChangeImage
) that can be sensibly
rotated to indicate a direction over a cell.dir
- the direction that "up" for this should point towardCopyright © Eben Howard 2012–2022. All rights reserved.