summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ValueEvent.java
blob: 1b89c1ec750c724da6aade34dd3f86c6cfabe0a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package NET.worlds.scape;

public class ValueEvent extends Event {
   public Object whoChanged;

   public ValueEvent(int time, Object source, WObject target, Object whoChanged) {
      super(time, source, target);
      this.whoChanged = whoChanged;
   }

   @Override
   public boolean deliver(Object o) {
      return o instanceof ValueHandler && ((ValueHandler)o).handle(this);
   }
}