예제 #1
0
 public override void Collided(Combatant enemy)
 {
     throw new NotImplementedException();
 }
예제 #2
0
 private void HandleCombatantSpawned(Combatant combatant)
 {
     this.AddCombatant(combatant, enemyBase);
     //GodClass.battlefield.AddChild(combatant);
 }
예제 #3
0
 public abstract void Collided(Combatant enemy);
예제 #4
0
 private void DestroyCombatant(Combatant combatant, List <Combatant> list)
 {
     combatant.State = GamePiece.ActionState.dead;
     list.Remove(combatant);
 }
예제 #5
0
 private bool CheckCollision(Combatant c1, GamePiece c2)
 {
     return(c1.BoundingBox.IntersectsRect(c2.BoundingBox));
 }