void ExecuteOrder(Response R) { if (R.AppliedID == 0) { ControlledPawn.ExecuteCommand(R); } else if (R.AppliedID == 1) { TargetPawn.ExecuteCommand(R); } }
//Grab the response from the Rulebook and apply it, though for now we are short cutting it.... public void ApplyResponse(Response R) { BasePawn TargetPawn = Pawns_In_Play[R.AppliedID]; if (TargetPawn != null) { TargetPawn.ExecuteCommand(R); if (TargetPawn == null) { //Remove it from the list } } else { throw new ArgumentNullException(); } }