private Message message_en_cours(int id, int date, int taille){
		Message mess = null;
		switch (id) {
			//deplacement1
			case(0x100):
				mess = new Deplacement1(date, id, taille);
				System.out.println("deplacement1 reconnu");
			break;
			case(0x111):
				mess = new Deplacement2(date, id, taille);
				System.out.println("deplacement2 reconnu");
			break;	
			case(0x200):
				mess = new Capteur(date, id, taille);
				System.out.println("capteur reconnu");
			break;				
			case(0x140):
				mess = new Intelligence(date, id, taille);
				System.out.println("intelligence reconnu");
			break;	
			case(0x500):
				mess = new Actionneur(date, id, taille);
				System.out.println("actionneur reconnu");
			break;
			case(0x7FF):
				mess = new Carte_espion(date, id, taille);
			break;
			default:
				mess = new MessUndefined(date, id, taille);
				System.out.println(mess);
			break;
			
		}
		return mess;
	}