Mercurial > hg > Members > tatsuki > Alice
view 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 |
line wrap: on
line source
package alice.test.topology.movement; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class SendLocation extends CodeSegment { public Receiver nowX = ids.create(CommandType.PEEK); int num; public SendLocation(int x){ this.num = x; } @Override public void run() { ods.update("parent", "fishX3", this.nowX.asInteger()+num); } }