* Change d'ecran vers l'ecran d'inventaire ou reviens sur l'ecran de jeu
*/
public void switchInventory() {
this.inventoryIsDisplayed = !inventoryIsDisplayed;
if (inventoryIsDisplayed) {
Event.setInventoryEvent(new InventoryEvent(player.getInventory()));
player.getInventory().reset();
} else {
Event.setGameEvent(new GameEvent(this));
}
setChanged();