view src/alice/test/topology/fishmodel/alpha/FishPoint.java @ 107:a8f77957a477 working

create new model to share fish point
author sugi
date Tue, 10 Jul 2012 02:30:25 +0900 (2012-07-09)
parents src/alice/test/topology/movement/FishPoint.java@df786bf8f036
children 7dbaaa0de144
line wrap: on
line source
package alice.test.topology.fishmodel.alpha;

import org.msgpack.annotation.Message;

@Message
public class FishPoint {
	// public fields are serialized.
	public float x = 0;
	public float y = 0;
	
	public FishPoint(){}
	
	public FishPoint(float x,float y){
		this.x = x;
		this.y = y;
	}
	
	public void setX(float x){
		this.x = x;
	}
	
	public void setY(float y){
		this.y = y;
	}
	
	public void setXY(float x,float y){
		this.x = x;
		this.y = y;
	}
	public float getX(){
		return this.x;
	}
	
	public float getY(){
		return this.y;
	}
	
	

}