Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/topology/aquarium/FishPoint.java @ 143:0651fb36a369 working
demo for Open Source Conference
author | sugi |
---|---|
date | Thu, 20 Sep 2012 22:44:11 +0900 |
parents | 53aff28cde6b |
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; } }