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