public Player(AlgorithmExecutor algorithm, Circle body) { this.algorithm = algorithm; this.name = algorithm.AlgorithmOwner; this.body = body; this.isAlive = true; this.reloadTimeRemaining = 0; this.bullets = new List<Bullet>(); }
public bool Intersects(Circle other) { return (this.Center - other.Center).Magnitude() <= this.Radius + other.Radius; }
public bool Contains(Circle other) { return ((this.Center - other.Center).Magnitude() + other.Radius) < this.Radius; }