public override bool Utilisation(Personnage p, Equipe e) { foreach (Quete qq in e.Quetes) { if (qq.Type == TypeQuete.TrouverObjetChacun || qq.Type == TypeQuete.TrouverObjetUnique) { QueteObjet q = (QueteObjet)qq; return q.FinirQuete(p); } } return false; }
public ConfigurationGame(string nomR, string nomV, List<Personnage> joueursR, List<Personnage> joueursV, List<string> queteR, List<string> queteV, MapType map) { equipeRouge = new Equipe(nomR, joueursR, queteR); equipeVerte = new Equipe(nomV, joueursV, queteV); if (map == MapType.standard) { FabriquePlateauDeJeu f = new FabriquePlateauDeJeu(); plateau = f.CreerPlateau(); } else if ( map == MapType.labyrinthe) { FabriqueLabyrinthe f = new FabriqueLabyrinthe(); plateau = f.CreerPlateau(); } else { FabriqueEtage f = new FabriqueEtage(); plateau = f.CreerPlateau(); } }
public ConfigurationGame(string nomR, string nomV, List <Personnage> joueursR, List <Personnage> joueursV, List <string> queteR, List <string> queteV, MapType map) { equipeRouge = new Equipe(nomR, joueursR, queteR); equipeVerte = new Equipe(nomV, joueursV, queteV); if (map == MapType.standard) { FabriquePlateauDeJeu f = new FabriquePlateauDeJeu(); plateau = f.CreerPlateau(); } else if (map == MapType.labyrinthe) { FabriqueLabyrinthe f = new FabriqueLabyrinthe(); plateau = f.CreerPlateau(); } else { FabriqueEtage f = new FabriqueEtage(); plateau = f.CreerPlateau(); } }
public override bool Utilisation(Personnage p, Equipe e) { p.PointsDeVie = p.PointsDeVie + plusvie; return(true); }
private void CheckQuest(Equipe e) { try { foreach (Quete q in e.Quetes) { if (q.Fini == true) continue; if (q.Type == TypeQuete.TrouverCase) { QueteZone qz = (QueteZone)q; foreach (Personnage p in e.Joueurs) if (p.Position.X == qz.ZoneATrouver.X && p.Position.Y == qz.ZoneATrouver.Y) q.FinirQuete(p); } else if (q.Type == TypeQuete.TrouverObjetUnique) { QueteObjet qo = (QueteObjet)q; foreach (Personnage p in e.Joueurs) if (p.Objets.Contains(qo.ObjetATrouver)) q.FinirQuete(p); } /* else if (q.Type == TypeQuete.TuerJoueur) { quete qo = (QueteObjet)q; if ( }*/ } } catch (Exception) { } }
public override bool Utilisation(Personnage p, Equipe e) { p.PointsDeVie = p.PointsDeVie + plusvie; return true; }