/*
 * Created on 12.11.2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package messages;


/**
 * @author root
 *
 */
public class PassMessage extends Message {

	private int x;
	private int y;
	private int passDirection;
  
	/**
	 * @param sender
	 * @param receiver
	 * @param directionOfSender
	 */
	public PassMessage(int time, int sender, int receiver, int directionOfSender, int AbsoluteDirectionOfSender,  int x, int y, int passDirection) {
		super(time, sender, receiver, directionOfSender, AbsoluteDirectionOfSender);
		this.x = x;
		this.y = y;
		this.passDirection = passDirection; 
	}

	/**
	 * Gibt die X-Komponente der Position wieder, zu der der angesprochene Spieler laufen soll
	 * @return Returns the x.
	 */
	public int getX() {
		return x;
	}
	
	/**
	 * Gibt die Y-Komponente der Position wieder, zu der der angesprochene Spieler laufen soll
	 * @return Returns the y.
	 */
	public int getY() {
		return y;
	}
	  /**
     * @return Returns the passDirection.
     */
    public int getPassDirection() {
        return passDirection;
    }
}
