public void AddAdventurer(IInitiativeTrackItem adventurer)
 {
     if (InitiativeTrack.IndexOf(adventurer) == -1)
     {
         InitiativeTrack.Add(adventurer);
     }
     else
     {
         InitiativeTrack.Remove(adventurer);
     }
 }
예제 #2
0
        public void AddInitiativeCard(InitiativeCardViewModel initCardViewModel)
        {
            if (initCardViewModel is PlayerActorInitiativeCardViewModel)
            {
                PlayerActorInitiativeCardViewModel playerCardVM = initCardViewModel as PlayerActorInitiativeCardViewModel;
                playerCardVM.OnWeaponsChange += AddWeaponSet;
                InitiativeTrack.Add(playerCardVM);

                Model.WeaponSet weaponSet = new Model.WeaponSet(playerCardVM.ActorViewModel.Actor);
                AddWeaponSet(weaponSet);
            }
            else
            {
                initCardViewModel.StartEncounter();
                InitiativeTrack.Add(initCardViewModel);
            }
        }