* @return Le mode dans lequel le modèle est.
* @since InventoryObjetModel 1.0
*/
@Override
public InventoryMode EnterRequest() {
final Fighter fighter = fighterListModel.get(currentFighter);
final boolean utilisable = (currentObjet.getUse() == Utilization.OUTSIDE_BATTLE || currentObjet.getUse() == Utilization.TWICE);
if (currentObjet != null && utilisable) {
final ObjetController objetController = new ObjetController(currentObjet, null);
if (currentObjet.getTarget() == Target.ALLY || currentObjet.getTarget() == Target.ENEMY) {
fighter.useObjet(currentObjet);
objetController.castObjet(fighter);
}else {
fighter.useObjet(currentObjet);
objetController.castObjet(fighterListModel);
}
}
resetList();