Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 public bool Intersects(Circle other)
 {
     return (this.Center - other.Center).Magnitude() <= this.Radius + other.Radius;
 }
Ejemplo n.º 3
0
 public bool Contains(Circle other)
 {
     return ((this.Center - other.Center).Magnitude() + other.Radius) < this.Radius;
 }