コード例 #1
0
ファイル: AnimationStorage.java プロジェクト: keppelcao/LGame
 public synchronized void addAnimation(Animation anm) {
   if (anm != null) {
     anm.Listener = asl;
     playAnimations.add(anm);
     isRunning = true;
     size++;
   }
 }
コード例 #2
0
ファイル: AnimationStorage.java プロジェクト: keppelcao/LGame
 public AnimationStorage(ArrayList<Animation> f) {
   this.asl = new AnimationStorageListener(this);
   if (f != null) {
     playAnimations = f;
   } else {
     playAnimations = new ArrayList<Animation>(CollectionUtils.INITIAL_CAPACITY);
   }
   for (Animation a : playAnimations) {
     if (a != null) {
       a.Listener = asl;
     }
   }
   this.size = playAnimations.size();
   this.loopOverToPlay = true;
   this.loopOverToRemove = false;
 }