Ejemplo n.º 1
0
 private void ExecuteAddActorToEncounter(object actorObj)
 {
     if (actorObj is Model.Actor)
     {
         if (actorObj is Model.PlayerActor)
         {
             Model.PlayerActor playerActor = actorObj as Model.PlayerActor;
             Encounter.AddActor(playerActor, playerActor.ActorName);
         }
         else
         {
             Model.Actor actor            = actorObj as Model.Actor;
             string      defaultActorName = actor.ActorName + " " + (Encounter.GetNumberOfActorsWithName(actor.ActorName) + 1);
             Encounter.AddActor(actor, defaultActorName);
         }
     }
 }