Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/aquarium/FishPoint.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | aefbe41fcf12 |
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; } }