示例#1
0
文件: MyTank.cs 项目: led318/tank-bot
 public MyTank(Element element, Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.Yellow;
     }
 }
示例#2
0
文件: River.cs 项目: led318/tank-bot
 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
文件: Blast.cs 项目: led318/tank-bot
 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
文件: Tree.cs 项目: led318/tank-bot
 public Tree(Element element, API.Components.Point point) : base(element, point)
 {
     if (AppSettings.DrawBaseBorders)
     {
         BorderColor = Color.DarkGreen;
     }
 }
示例#11
0
文件: Bullet.cs 项目: led318/tank-bot
        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
文件: Cell.cs 项目: led318/tank-bot
 public Cell(int i, int j)
 {
     Point = new Point(i, j);
 }
示例#16
0
文件: Bullet.cs 项目: led318/tank-bot
        //public bool IsMyBullet { get; set; }

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

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