summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/DroneAnimator.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/DroneAnimator.java')
-rw-r--r--NET/worlds/scape/DroneAnimator.java175
1 files changed, 175 insertions, 0 deletions
diff --git a/NET/worlds/scape/DroneAnimator.java b/NET/worlds/scape/DroneAnimator.java
new file mode 100644
index 0000000..ffa1e16
--- /dev/null
+++ b/NET/worlds/scape/DroneAnimator.java
@@ -0,0 +1,175 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */ import NET.worlds.console.Gamma;
+/* */ import NET.worlds.console.Main;
+/* */ import NET.worlds.console.MainCallback;
+/* */ import NET.worlds.console.ProgressBar;
+/* */ import NET.worlds.core.Std;
+/* */ import java.util.Vector;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class DroneAnimator
+/* */ implements MainCallback
+/* */ {
+/* */ public static final int INVALID_INDEX = -1;
+/* */ private static Vector<Integer> deltypeList;
+/* */
+/* */ static
+/* */ {
+/* 30 */ init(".");
+/* 31 */ if (Gamma.loadProgress != null) {
+/* 32 */ Gamma.loadProgress.setMessage("Loading avatar definitions...");
+/* 33 */ Gamma.loadProgress.advance();
+/* */ }
+/* */
+/* */
+/* 37 */ loadconfig(PendingCacheDrone.getAvatarDatPath());
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */ public static native void init(String paramString);
+/* */
+/* */
+/* */
+/* */
+/* */ public static native void loadconfig(String paramString);
+/* */
+/* */
+/* */
+/* */ public static native int getnameindex(String paramString);
+/* */
+/* */
+/* */
+/* */ public static native String getindexgeom(int paramInt);
+/* */
+/* */
+/* */
+/* */ public static native void prepFigure(WObject paramWObject, boolean paramBoolean);
+/* */
+/* */
+/* */
+/* */ public static native void addtype(int paramInt);
+/* */
+/* */
+/* */
+/* */ public static native void deltype(int paramInt);
+/* */
+/* */
+/* */
+/* */ public void delayedDeltype(int type)
+/* */ {
+/* 74 */ if (deltypeList == null) {
+/* 75 */ deltypeList = new Vector();
+/* 76 */ Main.register(this);
+/* */ }
+/* */
+/* 79 */ deltypeList.addElement(new Integer(type));
+/* 80 */ deltypeList.addElement(new Integer(Std.getFastTime()));
+/* */ }
+/* */
+/* */ public void mainCallback()
+/* */ {
+/* 85 */ int eraseTime = Std.getFastTime() - 20000;
+/* 86 */ while (deltypeList.size() > 1) {
+/* 87 */ int nextTime = ((Integer)deltypeList.elementAt(1)).intValue();
+/* 88 */ if (nextTime > eraseTime)
+/* */ break;
+/* 90 */ int type = ((Integer)deltypeList.elementAt(0)).intValue();
+/* 91 */ deltype(type);
+/* 92 */ deltypeList.removeElementAt(0);
+/* 93 */ deltypeList.removeElementAt(0);
+/* */ }
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */ public DroneAnimator()
+/* */ {
+/* 102 */ this._rep = CreateRep();
+/* */ }
+/* */
+/* */ public void finalize() throws Throwable {
+/* 106 */ DestroyRep(this._rep);
+/* 107 */ super.finalize();
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* 150 */ protected int _rep = 0;
+/* */
+/* */ public native void endanimations();
+/* */
+/* */ public native void moveto(int paramInt1, short paramShort1, short paramShort2, short paramShort3, short paramShort4, int paramInt2);
+/* */
+/* */ public native void moveby(int paramInt1, short paramShort1, short paramShort2, short paramShort3, int paramInt2);
+/* */
+/* */ public native void update(WObject paramWObject1, WObject paramWObject2, int paramInt, float paramFloat, boolean paramBoolean);
+/* */
+/* */ public native float animate(int paramInt1, String paramString, int paramInt2);
+/* */
+/* */ public native float getAnimationTime(int paramInt, String paramString);
+/* */
+/* */ public static synchronized native Vector<String> getActionList(int paramInt);
+/* */
+/* */ protected static native int CreateRep();
+/* */
+/* */ protected static native void DestroyRep(int paramInt);
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\DroneAnimator.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file