package Multi;

import java.io.Serializable;

import personnage.Personnage;

public class PacketPersoServer implements Serializable
{
	private static final long serialVersionUID = -60508032579007589L;
	public short score,x, y, vie, munitions, armure, counterRight, counterLeft;
	public boolean tir, direction, id;
	public void set(Personnage perso, boolean fire)
	{
		this.x = (short) perso.x;
		this.y = (short) perso.y;
		this.vie = (short) perso.vie;
		this.munitions = (short) perso.munitions;
		this.armure = (short) perso.armure;
		this.counterLeft =  (short) perso.counterLeft;
		this.counterRight = (short) perso.counterRight;
		this.direction = (perso.direction == 1);
		this.score = (short) perso.score;
		this.tir = fire;
		this.id = (perso.id == 0);
	}
}
