コード例 #1
0
ファイル: CActorPlayer.cs プロジェクト: kfdm/murasaki
 public override void GotHit(CActor hitby, System.Collections.Generic.List<CActor> toRemoveSelf, System.Collections.Generic.List<CActor> toRemoveOther)
 {
     System.Console.WriteLine("Got Hit!");
     toRemoveOther.Add(hitby);
 }
コード例 #2
0
ファイル: CActorMonster.cs プロジェクト: kfdm/murasaki
 /// <summary>
 /// Actor was hit
 /// </summary>
 /// <param name="hitby">Actor was hit by this</param>
 /// <param name="toRemove">List to remove actor</param>
 /// <param name="toRemoveWeapon">List to remove hitby</param>
 public override void GotHit(CActor hitby, List<CActor> toRemove, List<CActor> toRemoveWeapon)
 {
     Console.WriteLine("Hit Monster");
     toRemove.Add(this);
     toRemoveWeapon.Add(hitby);
 }
コード例 #3
0
ファイル: CActor.cs プロジェクト: kfdm/murasaki
 /// <summary>
 /// Called when an actor is hit by another actor
 /// </summary>
 /// <param name="hitby">Actor that hit the current actor</param>
 /// <param name="toRemoveSelf">List to remove the current actor</param>
 /// <param name="toRemoveOther">List to remove the other actor</param>
 public virtual void GotHit(CActor hitby, List<CActor> toRemoveSelf, List<CActor> toRemoveOther)
 {
 }