public void Update(MoteurGraphique loohy_, SystemeDeJeu gameplay_, ref e_modeAction mood_, /*Lecteur coldman_,*/ HUD hud_) { if (bataillon[uniteselect].fileDeMouvements.Count == 0) { switch (mood_) { case e_modeAction.Attaque: bataillon[uniteselect].Attaquer(loohy_, gameplay_, ref mood_, hud_); break; case e_modeAction.Pouvoir: if (bataillon[uniteselect].SHORYUKEN != null) { bataillon[uniteselect].UpdatePouvoir(loohy_, gameplay_, ref mood_, hud_); } break; default: bataillon[uniteselect].Mouvement(loohy_, gameplay_.listeDesJoueurs[gameplay_.tourencours], gameplay_); break; } } loohy_.porteeEgal0(); if (gameplay_.mood == e_modeAction.Attaque) { bataillon[uniteselect].lookAtPortee(loohy_); } if (gameplay_.mood == e_modeAction.Pouvoir) { bataillon[uniteselect].lookAtPorteePouvoir(loohy_); } if ((bataillon[uniteselect].state == e_EtatAnim.repos1 || bataillon[uniteselect].state == e_EtatAnim.repos2) && !hud_.sontvises()) { Selectionner(loohy_, /*coldman_,*/ hud_); } foreach (Unite item in bataillon) { item.lireLaFile(loohy_, gameplay_.listeDesJoueurs[gameplay_.tourencours], gameplay_); } }