Пример #1
0
 public MyTank(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Yellow;
     }
 }
Пример #2
0
 public River(Element element, API.Components.Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Blue;
     }
 }
Пример #3
0
 public Ice(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.White;
     }
 }
Пример #4
0
 public AiTank(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.DarkGray;
     }
 }
Пример #5
0
 public BasePrize(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Orange;
     }
 }
Пример #6
0
 public Blast(Element element, API.Components.Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Brown;
     }
 }
Пример #7
0
        public AiPrizeTank(Element element, Point point) : base(element, point)
        {
            IsPrize = true;

            //if (AppSettings.DrawBaseBorders)
            BorderColor = Color.Orange;
        }
Пример #8
0
 public EnemyTank(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Green;
     }
 }
Пример #9
0
 public BaseWall(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Brown;
     }
 }
Пример #10
0
 public Tree(Element element, API.Components.Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.DarkGreen;
     }
 }
Пример #11
0
        public Bullet(Element element, Point point) : base(element, point)
        {
            if (AppSettings.DrawBaseBorders)
            {
                BorderColor = Color.Red;
            }

            //AddNote("0", Brushes.Red);
        }
Пример #12
0
        public BasePrediction Add(PredictionType type, int depth, Point point, List <Command> commands = null, BaseItem item = null)
        {
            var prediction = PredictionFactory.Get(type, depth, point, commands, item);

            switch (type)
            {
            case PredictionType.AiMove:
                AiMovePredictions.Add((AiMovePrediction)prediction);
                break;

            case PredictionType.AiShot:
                AiShotPredictions.Add((AiShotPrediction)prediction);
                break;

            case PredictionType.Bullet:
                BulletPredictions.Add((BulletPrediction)prediction);
                break;

            case PredictionType.EnemyMove:
                EnemyMovePredictions.Add((EnemyMovePrediction)prediction);
                break;

            case PredictionType.EnemyShot:
                EnemyShotPredictions.Add((EnemyShotPrediction)prediction);
                break;

            case PredictionType.MyMove:
                MyMovePredictions.Add((MyMovePrediction)prediction);
                break;

            case PredictionType.MyShot:
                MyShotPredictions.Add((MyShotPrediction)prediction);
                break;

            case PredictionType.MyKill:
                MyKillPredictions.Add((MyKillPrediction)prediction);
                break;

            case PredictionType.DangerCell:
                DangerCellPredictions.Add((DangerCellPrediction)prediction);
                break;

            default:
                throw new NotImplementedException();
            }

            return(prediction);
        }
Пример #13
0
 protected BaseTank(Element element, Point point) : base(element, point)
 {
     SetHealthNote();
     InitIsStuck();
 }
Пример #14
0
 protected BaseItem(Element element, Point point)
 {
     Element = element;
     Point   = point;
 }
Пример #15
0
 public Cell(int i, int j)
 {
     Point = new Point(i, j);
 }
Пример #16
0
        //public bool IsMyBullet { get; set; }

        public Bullet(Element element, Point point) : base(element, point)
        {
            BorderColor = Color.Red;

            //AddNote("0", Brushes.Red);
        }