Mercurial > hg > Database > Alice
comparison src/alice/test/topology/aquarium/SetLocation.java @ 212:b5daccf36104 working
add Receiver state pattern
author | one |
---|---|
date | Wed, 27 Mar 2013 17:30:52 +0900 |
parents | 1b532146b355 |
children | fec0726bb126 |
comparison
equal
deleted
inserted
replaced
211:b8f72b378f18 | 212:b5daccf36104 |
---|---|
17 this.position.setKey("local",key,index); | 17 this.position.setKey("local",key,index); |
18 } | 18 } |
19 | 19 |
20 @Override | 20 @Override |
21 public void run(){ | 21 public void run(){ |
22 FishPoint fp = this.position.asClass(FishPoint.class); | 22 FishPoint fp = this.position.data.asClass(this.position, FishPoint.class); |
23 obj.setLocation(fp.getX(), fp.getY(), fp.getZ()); | 23 obj.setLocation(fp.getX(), fp.getY(), fp.getZ()); |
24 new SetLocation(obj, position.key, position.index, range); | 24 new SetLocation(obj, position.data.key, position.data.index, range); |
25 | 25 |
26 } | 26 } |
27 | 27 |
28 | 28 |
29 } | 29 } |