Mercurial > hg > Members > tatsuki > Alice
view src/main/java/alice/test/topology/aquarium/FishPoint.java @ 402:dbfeb353a78d draft multicast tip
refs #3 test commit
author | tatsuki |
---|---|
date | Tue, 24 Jun 2014 19:06:41 +0900 |
parents | 8f71c3e6f11d |
children |
line wrap: on
line source
package alice.test.topology.aquarium; import org.msgpack.annotation.Message; @Message public class FishPoint { // public fields are serialized. public float x = 0.0f; public float y = 0.0f; public float z = 0.0f; public FishPoint(){} public FishPoint(float x,float y){ this.x = x; this.y = y; } public FishPoint(float x,float y,float z){ this.x = x; this.y = y; this.z = z; } public void setXY(float x,float y){ this.x = x; this.y = y; } public void setXYZ(float x,float y,float z){ this.x = x; this.y = y; this.z = z; } public float getX(){ return this.x; } public float getY(){ return this.y; } public float getZ(){ return this.z; } }