예제 #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();
 }