Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/codesegment/remote/beta/FishPoint.java @ 136:bb023f060f2f working
add different version test
author | sugi |
---|---|
date | Sun, 19 Aug 2012 21:31:21 +0900 |
parents | |
children |
line wrap: on
line source
package alice.test.codesegment.remote.beta; import org.msgpack.annotation.Message; import org.msgpack.annotation.Optional; @Message public class FishPoint { // public fields are serialized. public float x = 0.0f; public float y = 0.0f; public String vector = "light"; @Optional 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; } public String getVector(){ return this.vector; } }