summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/Action_Motion.java
blob: b7eaaa066d9f1a8bfc7700aadb8102463b78ab99 (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
package NET.worlds.scape;

import java.io.IOException;

public class Action_Motion extends Action {
   @Override
   public Persister trigger(Event e, Persister seqID) {
      return null;
   }

   @Override
   public void saveState(Saver s) throws IOException {
      assert false;
   }

   @Override
   public void restoreState(Restorer r) throws IOException {
      MoveAction a = new MoveAction();
      r.replace(this, a);
      a.cycleTime = (int)r.restoreFloat();
      a.cycles = r.restoreInt();

      try {
         a.extentPoint.restoreState(r);
         a.startPoint.restoreState(r);
         a.extentScale.restoreState(r);
         a.startScale.restoreState(r);
         a.extentSpin.restoreState(r);
         a.startSpin.restoreState(r);
      } catch (Exception var4) {
      }

      a.extentRotation = r.restoreFloat();
      a.startRotation = r.restoreFloat();
      a.extentPoint.minus(a.startPoint);
      a.extentScale.dividedBy(a.startScale);
   }
}