public override void AjouteObjet(ObjetAbstrait obj) { if (!ObjectsList.Contains(obj)) { ObjectsList.Add(obj); } }
public virtual void PrendreObjet(ObjetAbstrait unObjet) { if (fourmi.Position.X == unObjet.PositionObjet.X && fourmi.Position.Y == unObjet.PositionObjet.Y) { fourmi.LstObjets.Add(unObjet); } }
protected override bool TestEgaliteObjet(ObjetAbstrait obj, Coordonnees coor) { if (coor.Equals(obj.Case)) { return(true); } return(false); }
public override void SetObjectToObserve(ObjetAbstrait obj) { if (obj == null) Walkable = true; else if ((obj is SpawnPoint) || (obj is GatherPoint)) Walkable = false; else Walkable = true; base.SetObjectToObserve(obj); }
public PheromoneActive getPheromone() { for (int i = 0; i < ObjetsList.Count; i++) { ObjetAbstrait ph = ObjetsList[i]; if (ph.GetType() is PheromoneActive || ph.GetType() == typeof(PheromoneBas) || ph.GetType() == typeof(PheromoneHaut) || ph.GetType() == typeof(PheromoneGauche) || ph.GetType() == typeof(PheromoneDroite)) { return((PheromoneActive)ph); } } return(null); }
public override void SetObjectToObserve(ObjetAbstrait obj) { if (obj == null) { Walkable = true; } else if ((obj is SpawnPoint) || (obj is GatherPoint)) { Walkable = false; } else { Walkable = true; } base.SetObjectToObserve(obj); }
public void AjouteObjet(ObjetAbstrait unObjet) { ObjetsList.Add(unObjet); }
public abstract void AjouteObjet(ObjetAbstrait obj);
public override void PrendreObjet(ObjetAbstrait unObjet) { fourmi.LstObjets.Add(unObjet); }
protected virtual bool TestEgaliteObjet(ObjetAbstrait obj, Coordonnees coor) { return(false); // if (coor.Equals(obj.Case)) return true; // return false; }
public override void AjoutePheromone(ObjetAbstrait unPheromone) { this.ObjetList.Add(unPheromone); }
public override void AjouteOeuf(ObjetAbstrait unOeuf) { this.ObjetList.Add(unOeuf); }
public virtual ObjetAbstrait ContientObjet(ObjetAbstrait unObjet, ZoneAbstraite uneZone) { throw new NotImplementedException(); }
public override void AjouteObjet(ObjetAbstrait obj) { ObjectsList.Add(obj); }
public override void AjouteObjet(ObjetAbstrait unObjet) { ObjetAbstraitList.Add(unObjet); }
protected virtual bool TestEgaliteObjet(ObjetAbstrait obj, Coordonnees coor) { return false; // if (coor.Equals(obj.Case)) return true; // return false; }
protected override bool TestEgaliteObjet(ObjetAbstrait obj, Coordonnees coor) { if (coor.Equals(obj.Case)) return true; return false; }
public override void PrendreObjet(ObjetAbstrait unObjet) { base.PrendreObjet(unObjet); }
public abstract void AjouteOeuf(ObjetAbstrait unObject);
public abstract void AjoutePheromone(ObjetAbstrait unObject);
public virtual void SetObjectToObserve(ObjetAbstrait obj) { ObjectToObserve = obj; Update(); }