134
|
1 package alice.test.topology.aquarium;
|
97
|
2
|
|
3 import org.msgpack.annotation.Message;
|
|
4
|
|
5 @Message
|
|
6 public class FishPoint {
|
|
7 // public fields are serialized.
|
114
|
8 public float x = 0.0f;
|
|
9 public float y = 0.0f;
|
|
10 public float z = 0.0f;
|
|
11 public String vector = "light";
|
97
|
12
|
|
13 public FishPoint(){}
|
|
14
|
|
15 public FishPoint(float x,float y){
|
|
16 this.x = x;
|
|
17 this.y = y;
|
|
18 }
|
|
19
|
114
|
20 public FishPoint(float x,float y,float z){
|
97
|
21 this.x = x;
|
|
22 this.y = y;
|
114
|
23 this.z = z;
|
97
|
24 }
|
|
25
|
|
26 public void setXY(float x,float y){
|
|
27 this.x = x;
|
|
28 this.y = y;
|
|
29 }
|
114
|
30
|
|
31 public void setXYZ(float x,float y,float z){
|
|
32 this.x = x;
|
|
33 this.y = y;
|
|
34 this.z = z;
|
|
35 }
|
|
36
|
97
|
37 public float getX(){
|
|
38 return this.x;
|
|
39 }
|
|
40
|
|
41 public float getY(){
|
|
42 return this.y;
|
|
43 }
|
|
44
|
114
|
45 public float getZ(){
|
|
46 return this.z;
|
|
47 }
|
97
|
48
|
114
|
49 public String getVector(){
|
|
50 return this.vector;
|
|
51 }
|
97
|
52
|
|
53 }
|