Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<Action> |
Sprite.actionList |
Modifier and Type | Method and Description |
---|---|
static Action |
ActionFactory.boundToScreen(double screenWidth,
double screenHeight)
Create an Action that automatically calls
Sprite.boundToScreen(double, double) . |
static Action |
ActionFactory.delay(double duration)
Create an Action that waits for a specified amount of time.
|
static Action |
ActionFactory.destroyOutsideScreen(double screenWidth,
double screenHeight)
Create an Action that removes a Sprite if no portion of the Sprite remains
within the screen boundaries.
|
static Action |
ActionFactory.fadeIn(double fadeRate)
Create an Action to fade in (increase opacity of) a Sprite over a period of time.
|
static Action |
ActionFactory.fadeOut(double fadeRate)
Create an Action to fade out (reduce opacity of) a Sprite over a period of time.
|
static Action |
ActionFactory.forever(Action action)
Create an Action that repeats another Action forever.
|
static Action |
ActionFactory.moveBy(double deltaX,
double deltaY,
double duration)
Create an Action to move a Sprite by a fixed amount over a period of time.
|
static Action |
ActionFactory.remove()
Create an Action that automatically removes a Sprite.
|
static Action |
ActionFactory.repeat(Action action,
int totalTimes)
Create an Action that repeats another Action a fixed number of times.
|
static Action |
ActionFactory.rotateBy(double deltaAngle,
double duration)
Create an Action to rotate a Sprite by a fixed amount over a period of time.
|
static Action |
ActionFactory.sequence(Action... actions)
Create an Action to perform a sequence of actions.
|
static Action |
ActionFactory.wrapToScreen(double screenWidth,
double screenHeight)
Create an Action that automatically calls
Sprite.wrapToScreen(double, double) . |
Modifier and Type | Method and Description |
---|---|
void |
Sprite.addAction(Action a)
Add an
Action to this Sprite. |
static Action |
ActionFactory.forever(Action action)
Create an Action that repeats another Action forever.
|
static Action |
ActionFactory.repeat(Action action,
int totalTimes)
Create an Action that repeats another Action a fixed number of times.
|
static Action |
ActionFactory.sequence(Action... actions)
Create an Action to perform a sequence of actions.
|