Ejemplo n.º 1
0
 void ExecuteOrder(Response R)
 {
     if (R.AppliedID == 0)
     {
         ControlledPawn.ExecuteCommand(R);
     }
     else if (R.AppliedID == 1)
     {
         TargetPawn.ExecuteCommand(R);
     }
 }
Ejemplo n.º 2
0
        //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();
            }
        }