package Multi;

import java.io.Serializable;

import personnage.Personnage;

public class PacketPersoClient implements Serializable
{
	private static final long serialVersionUID = -2489953195130616020L;
	public short x, y, counterRight, counterLeft;
	public boolean fire, direction;
	public void set(Personnage perso, boolean fire)
	{
		this.x = (short) perso.x;
		this.y = (short) perso.y;
		this.direction = (perso.direction == 1);
		this.fire = fire;
		this.counterRight = (short) perso.counterRight;
		this.counterLeft = (short) perso.counterLeft;
	}
}
