示例#1
0
 /**
  * Return Real Position
  *
  * <p>Get Position with animations modify.
  *
  * @return {@link Vector2} Position
  */
 public final Vector2 getRealPosition() {
   final AnimationSet animationSet = getAnimationStack().animateFrame();
   Vector2 position = mPosition.clone();
   position.sum(animationSet.getPosition());
   return position;
 }
示例#2
0
 /**
  * Get center .
  *
  * @return {@link Vector2} Center
  */
 public final Vector2 getCenter() {
   return mCenter.clone();
 }
示例#3
0
 /**
  * Return Position
  *
  * @return {@link Vector2} Position
  */
 public final Vector2 getPosition() {
   return mPosition.clone();
 }
示例#4
0
 /** Get Scale */
 public final Vector2 getScale() {
   return mScale.clone();
 }
示例#5
0
 /**
  * Set center .
  *
  * @param center {@link Vector2} Center
  */
 public final void setCenter(final Vector2 center) {
   mCenter = center.clone();
 }
示例#6
0
 /**
  * Set Sprite Position
  *
  * @param position {@link Vector2} Position
  */
 public final void setPosition(final Vector2 position) {
   mPosition = position.clone();
 }
示例#7
0
 /**
  * Set Scale
  *
  * @param scale Float Scale
  */
 public final void setScale(final Vector2 scale) {
   mScale = scale.clone();
 }