comparison src/alice/test/topology/movement/SendLocation.java @ 92:8e3c1217aad4 working

add KeyInput
author sugi
date Tue, 05 Jun 2012 14:31:04 +0900
parents
children 6601f8854126
comparison
equal deleted inserted replaced
91:19f3bd33277d 92:8e3c1217aad4
1 package alice.test.topology.movement;
2
3 import alice.codesegment.CodeSegment;
4 import alice.datasegment.CommandType;
5 import alice.datasegment.Receiver;
6
7
8 public class SendLocation extends CodeSegment {
9
10 public Receiver nowX = ids.create(CommandType.PEEK);
11 int num;
12
13 public SendLocation(int x){
14 this.num = x;
15 }
16
17 @Override
18 public void run() {
19 ods.update("parent", "fishX3", this.nowX.asInteger()+num);
20
21 }
22
23 }