public static Size DistanceBetween(Base playerBase, int x, int y) { return DistanceBetween(playerBase.x, playerBase.y, x, y); }
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); }
public static Size DistanceBetween(Unit tank, Base playerBase) { return DistanceBetween(tank.x, tank.y, playerBase.x, playerBase.y); }