comparison src/alice/test/topology/aquarium/FishPoint.java @ 134:53aff28cde6b working

change package
author sugi
date Wed, 15 Aug 2012 17:11:57 +0900
parents src/alice/test/topology/fishmodel/alpha/FishPoint.java@7dbaaa0de144
children 0651fb36a369
comparison
equal deleted inserted replaced
133:26b4b18c51fa 134:53aff28cde6b
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 public String vector = "light";
12
13 public FishPoint(){}
14
15 public FishPoint(float x,float y){
16 this.x = x;
17 this.y = y;
18 }
19
20 public FishPoint(float x,float y,float z){
21 this.x = x;
22 this.y = y;
23 this.z = z;
24 }
25
26 public void setXY(float x,float y){
27 this.x = x;
28 this.y = y;
29 }
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
37 public float getX(){
38 return this.x;
39 }
40
41 public float getY(){
42 return this.y;
43 }
44
45 public float getZ(){
46 return this.z;
47 }
48
49 public String getVector(){
50 return this.vector;
51 }
52
53 }