Example #1
0
 public static Size DistanceBetween(Base playerBase, int x, int y)
 {
     return DistanceBetween(playerBase.x, playerBase.y, x, y);
 }
Example #2
0
        public Player(Player source)
            : this(source.name)
        {
            foreach (Bullet bullet in source.bullets)
            {
                this.bullets.Add(new Bullet(bullet));
            }
            foreach (Unit unit in source.units)
            {
                this.units.Add(new Unit(unit));
            }

            this.playerBase = new Base(source.playerBase.x, source.playerBase.y);
        }
Example #3
0
 public static Size DistanceBetween(Unit tank, Base playerBase)
 {
     return DistanceBetween(tank.x, tank.y, playerBase.x, playerBase.y);
 }