summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/AnimatedActionHandlerImp.java
blob: d692ba60d2ed81e71d7603986a73abdcc0379585 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*    */ package NET.worlds.scape;
/*    */ 
/*    */ import java.util.Enumeration;
/*    */ import java.util.Vector;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AnimatedActionHandlerImp
/*    */   implements AnimatedActionHandler
/*    */ {
/*    */   Vector<AnimatedActionCallback> callbacks;
/*    */   
/*    */   AnimatedActionHandlerImp()
/*    */   {
/* 17 */     this.callbacks = new Vector();
/*    */   }
/*    */   
/*    */   public void addCallback(AnimatedActionCallback c)
/*    */   {
/* 22 */     assert (this.callbacks != null);
/* 23 */     this.callbacks.addElement(c);
/*    */   }
/*    */   
/*    */   public void removeCallback(AnimatedActionCallback c)
/*    */   {
/* 28 */     assert (this.callbacks != null);
/* 29 */     this.callbacks.removeElement(c);
/*    */   }
/*    */   
/*    */   public void notifyCallbacks(int completionCode)
/*    */   {
/* 34 */     assert (this.callbacks != null);
/* 35 */     Enumeration<AnimatedActionCallback> e = this.callbacks.elements();
/* 36 */     while (e.hasMoreElements())
/*    */     {
/* 38 */       AnimatedActionCallback c = 
/* 39 */         (AnimatedActionCallback)e.nextElement();
/* 40 */       c.motionComplete(completionCode);
/*    */     }
/*    */   }
/*    */ }


/* Location:              C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\AnimatedActionHandlerImp.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */