Package arc.scene.actions
Class SizeByAction
java.lang.Object
arc.scene.Action
arc.scene.actions.TemporalAction
arc.scene.actions.RelativeTemporalAction
arc.scene.actions.SizeByAction
- All Implemented Interfaces:
Pool.Poolable
Moves an actor from its current size to a relative size.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
void
setAmount
(float width, float height) void
setAmountHeight
(float height) void
setAmountWidth
(float width) protected void
updateRelative
(float percentDelta) Methods inherited from class arc.scene.actions.RelativeTemporalAction
begin, update
Methods inherited from class arc.scene.actions.TemporalAction
act, end, finish, getDuration, getInterpolation, getTime, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
-
Constructor Details
-
SizeByAction
public SizeByAction()
-
-
Method Details
-
updateRelative
protected void updateRelative(float percentDelta) - Specified by:
updateRelative
in classRelativeTemporalAction
-
setAmount
public void setAmount(float width, float height) -
getAmountWidth
public float getAmountWidth() -
setAmountWidth
public void setAmountWidth(float width) -
getAmountHeight
public float getAmountHeight() -
setAmountHeight
public void setAmountHeight(float height)
-