Exemplo n.º 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;
 }
Exemplo n.º 2
0
 /**
  * Get center .
  *
  * @return {@link Vector2} Center
  */
 public final Vector2 getCenter() {
   return mCenter.clone();
 }
Exemplo n.º 3
0
 /**
  * Return Position
  *
  * @return {@link Vector2} Position
  */
 public final Vector2 getPosition() {
   return mPosition.clone();
 }
Exemplo n.º 4
0
 /** Get Scale */
 public final Vector2 getScale() {
   return mScale.clone();
 }
Exemplo n.º 5
0
 /**
  * Set center .
  *
  * @param center {@link Vector2} Center
  */
 public final void setCenter(final Vector2 center) {
   mCenter = center.clone();
 }
Exemplo n.º 6
0
 /**
  * Set Sprite Position
  *
  * @param position {@link Vector2} Position
  */
 public final void setPosition(final Vector2 position) {
   mPosition = position.clone();
 }
Exemplo n.º 7
0
 /**
  * Set Scale
  *
  * @param scale Float Scale
  */
 public final void setScale(final Vector2 scale) {
   mScale = scale.clone();
 }