Mercurial > hg > Members > tatsuki > Alice
view src/main/java/alice/test/topology/aquarium/fx/FishInfo.java @ 383:878d397904da multicast
draw same Scene
author | sugi |
---|---|
date | Tue, 10 Jun 2014 19:36:46 +0900 |
parents | ac3cf96f4426 |
children | cef1e0a46bb9 |
line wrap: on
line source
package alice.test.topology.aquarium.fx; import org.msgpack.annotation.Message; @Message public class FishInfo { // public fields are serialized. public double x = 0; public double y = 0; public double z = 0; public String name; public int size = 1; public String type = "defalut"; // use select object type. after implement may be... public FishInfo(){ // this constructor is nothing to do, but need for serializing with MessagePack } public FishInfo(double x,double y,double z){ this.x = x; this.y = y; this.z = z; } public void setName(String name){ this.name = name; } public void setSize(int size){ this.size = size; } public double getX(){ return this.x; } public double getY(){ return this.y; } public double getZ(){ return this.z; } }