Exemple #1
0
        public SoldierAnt(Point location, Point speed, RedColony colony) : base(location, speed, colony)
        {
            charging = true;
            Random r = new Random();

            System.Drawing.Point pt = new System.Drawing.Point(Convert.ToInt32(MyColony.Location.X), Convert.ToInt32(MyColony.Location.Y));
            pointOfAction = new Point(MyColony.Location.X + r.Next(-100, 300), MyColony.Location.Y + r.Next(-100, 300));
        }
Exemple #2
0
 public ScoutAnt(Point location, Point speed, RedColony colony) : base(location, speed, colony) //Setup
 {
     GeneratePosition();                                                                        //Génération d'une destination aléatoire
 }
Exemple #3
0
 public WorkerAnt(Point location, Point speed, RedColony colony) : base(location, speed, colony)
 {
 }