Mercurial > hg > Members > tatsuki > Alice
comparison 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 |
comparison
equal
deleted
inserted
replaced
344:9f97ec18f8c5 | 345:8f71c3e6f11d |
---|---|
1 package alice.test.topology.aquarium; | |
2 | |
3 import org.msgpack.annotation.Message; | |
4 | |
5 @Message | |
6 public class FishPoint { | |
7 // public fields are serialized. | |
8 public float x = 0.0f; | |
9 public float y = 0.0f; | |
10 public float z = 0.0f; | |
11 | |
12 public FishPoint(){} | |
13 | |
14 public FishPoint(float x,float y){ | |
15 this.x = x; | |
16 this.y = y; | |
17 } | |
18 | |
19 public FishPoint(float x,float y,float z){ | |
20 this.x = x; | |
21 this.y = y; | |
22 this.z = z; | |
23 } | |
24 | |
25 public void setXY(float x,float y){ | |
26 this.x = x; | |
27 this.y = y; | |
28 } | |
29 | |
30 public void setXYZ(float x,float y,float z){ | |
31 this.x = x; | |
32 this.y = y; | |
33 this.z = z; | |
34 } | |
35 | |
36 public float getX(){ | |
37 return this.x; | |
38 } | |
39 | |
40 public float getY(){ | |
41 return this.y; | |
42 } | |
43 | |
44 public float getZ(){ | |
45 return this.z; | |
46 } | |
47 | |
48 } |