예제 #1
0
 public void playIndex(int idx) {
   if (currentFrameIndex > -1 && currentFrameIndex < size) {
     currentFrameIndex = idx;
     Animation animation = playAnimations.get(currentFrameIndex);
     if (animation != null) {
       animation.reset();
     }
   }
 }
예제 #2
0
 public void indexLocked(int inx) {
   this.animationIndexLocked = inx;
   if (animationIndexLocked > -1 && animationIndexLocked < size) {
     this.currentFrameIndex = animationIndexLocked;
     Animation animation = playAnimations.get(currentFrameIndex);
     if (animation != null) {
       animation.reset();
     }
   }
 }
예제 #3
0
파일: Sprite.java 프로젝트: ufaith/javaxyq
 public void addAnimation(Animation anim) {
     anim.reset();
     animations.add(anim);
 }
예제 #4
0
 public void reset() {
   super.reset();
   loopOverToPlay = true;
   loopOverToRemove = false;
 }