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

import NET.worlds.console.Console;
import java.io.IOException;
import java.util.Vector;

public class EquipAction extends Action {
   private static Object classCookie = new Object();

   @Override
   public Persister trigger(Event arg, Persister seqID) {
      Vector equippableItems = InventoryManager.getInventoryManager().getEquippableItems();
      new Vector();
      InventoryDialog invDialog = new InventoryDialog(Console.getFrame());
      invDialog.show();
      return null;
   }

   @Override
   public void saveState(Saver s) throws IOException {
      s.saveVersion(0, classCookie);
      super.saveState(s);
   }

   @Override
   public void restoreState(Restorer r) throws IOException, TooNewException {
      switch (r.restoreVersion(classCookie)) {
         case 0:
            super.restoreState(r);
            return;
         default:
            throw new TooNewException();
      }
   }
}