コード例 #1
0
ファイル: Player.cs プロジェクト: psotirov/PCMagazine
 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>();
 }
コード例 #2
0
ファイル: Circle.cs プロジェクト: psotirov/PCMagazine
 public bool Intersects(Circle other)
 {
     return (this.Center - other.Center).Magnitude() <= this.Radius + other.Radius;
 }
コード例 #3
0
ファイル: Circle.cs プロジェクト: psotirov/PCMagazine
 public bool Contains(Circle other)
 {
     return ((this.Center - other.Center).Magnitude() + other.Radius) < this.Radius;
 }