package gameObjects;
/*
 * Created on Sep 20, 2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */

/**
 * @author tamer
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class Flag extends GameObject{
	
	public Flag(float absX, float absY){
		super(0);
		super.setAbsX(absX);
		super.setAbsY(absY);
	}

	public void setData(float dist, float dir, int time){
		super.setDist(dist);
		super.setDir(dir);
		super.setSeen(false);
		super.setLastSeenTime(time);
	}

	public void setData(float dist, float dir, float distChange, float dirChange, int time){
		super.setDist(dist);
		super.setDir(dir);
		super.setDistChange(distChange);
		super.setDirChange(dirChange);
		super.setSeen(true);
		super.setLastSeenTime(time);
	}

	public String toString(){
		return "Fahne (" + super.getAbsX() + ", "+ super.getAbsY() + ", " + super.getDist() + ", " + super.getDir() + ")";
	}
}
