static void Main(string[] args) { Console.WriteLine("Tapez N pour l'exploration non informée ou I pour l'exploration informée : "); string input = "x"; while ((input != "N" && input != "n" && input != "I" && input != "i")) { input = Console.ReadLine(); Console.WriteLine("Mauvais choix"); } Console.Clear(); if (input == "N" || input == "n") { input = "n"; } if (input == "I" || input == "i") { input = "i"; } Manor manor = Manor.getInstance(); manor.setAlive(input); }
public void execute(string action) { Manor.getInstance().pushEvent(action); actions[action].enact(Manor.getInstance().getFloor(), (int[])Manor.getInstance().getFloor().getAspXY().Clone()); }
public int getAccount() { return(Manor.getInstance().getFloor().account()); }
public int[,] getSurroundings() { return((int[, ])Manor.getInstance().getFloorState().Clone()); }
static void Main(string[] args) { Manor manor = Manor.getInstance(); manor.setAlive(); }
// Get vacXY public int[] getVacXY() { return((int[])Manor.getInstance().getAspXY().Clone()); }
// Execute an action and print it public void execute(string action) { Console.WriteLine("Actors are doing : " + action); actions[action].enact(Manor.getInstance().getFloor(), (int[])Manor.getInstance().getAspXY().Clone()); }