Ajout de channel

This commit is contained in:
2024-05-23 18:27:14 +02:00
parent 0e0a1c3ff4
commit 42737899cd
4 changed files with 107 additions and 43 deletions

View File

@@ -1,24 +1,24 @@
import connexion.Channel;
import connexion.Reseau;
import environnements.*;
import game.Terminal;
import personnages.*;
import types.Item;
public class Main {
public static void main(String[] args) {
public static void main(String[] args) throws InterruptedException {
Personnage.n = 2;
Map map = new Map(20, 20);
Personnage[] personnages = new Personnage[] {
new Player(new int[] {0, 0}, "Philippe Etchebest"),
new Channel(map, "23", "24")
};
// map.addObjects(Item.FRAISE, 0, 0);
// map.addObjectsRandomize(new Item[] {Item.FRAISE}, 1);
new Terminal(map, personnages).run("24");
new Terminal(map, personnages).run(new String(), new String());
}
}