Package com.starpoints.animation
Class ItemAnimation
- java.lang.Object
-
- com.starpoints.animation.Animation
-
- com.starpoints.animation.ItemAnimation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ItemAnimation extends Animation implements java.lang.Cloneable
Item animation info for moves.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ItemitemThe item.protected PointsrcPointThe source point.protected PointtargetPointThe target point.-
Fields inherited from class com.starpoints.animation.Animation
duration, startDuration
-
-
Constructor Summary
Constructors Constructor Description ItemAnimation(Item i, Point srcPoint, Point targetPoint, int duration)Creates a new item move animation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemgetItem()Gets the item.PointgetSrcPoint()Gets the old point.PointgetTargetPoint()Gets the target point.voidsetMovement(Point srcPoint, Point targetPoint)Sets the points of the movement.-
Methods inherited from class com.starpoints.animation.Animation
clone, getCopyForNextAnimation, getLifecycleIndex
-
-
-
-
Method Detail
-
getSrcPoint
public Point getSrcPoint()
Gets the old point.- Returns:
- The old point.
-
getTargetPoint
public Point getTargetPoint()
Gets the target point.- Returns:
- The target point.
-
setMovement
public void setMovement(Point srcPoint, Point targetPoint)
Sets the points of the movement.- Parameters:
srcPoint- The old point.targetPoint- The target point.
-
getItem
public Item getItem()
Gets the item.- Returns:
- The moving item.
-
-