コード例 #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));
        }
コード例 #2
0
 public ScoutAnt(Point location, Point speed, RedColony colony) : base(location, speed, colony) //Setup
 {
     GeneratePosition();                                                                        //Génération d'une destination aléatoire
 }
コード例 #3
0
ファイル: WorkerAnt.cs プロジェクト: XCarrel/Krohonde
 public WorkerAnt(Point location, Point speed, RedColony colony) : base(location, speed, colony)
 {
 }