public void Setup() { participant = new ActionParticipant("name"); var participants = new[] { participant }; allParticipantsViewModel = new PartyViewModel(participants); editPartyMemberCommand = new EditPartyMemberCommand(allParticipantsViewModel); }
public void Setup() { participant = new ActionParticipant("name"); var participants = new[] { participant }; partyViewModel = new PartyViewModel(participants); addEnemyActionCommand = new AddEnemyActionCommand(partyViewModel); }
public void Setup() { participant = new ActionParticipant("name"); var participants = new[] { participant }; allParticipantsViewModel = new PartyViewModel(participants); removeEnemyCommand = new RemoveEnemyCommand(allParticipantsViewModel); }
public void Setup() { action = new BattleAction("attack"); participant = new ActionParticipant("name"); participant.AddAction(action); var participants = new[] { participant }; partyViewModel = new PartyViewModel(participants); removeEnemyActionCommand = new RemoveEnemyActionCommand(partyViewModel); }
public void Setup() { action = new BattleAction("attack"); participant = new ActionParticipant("name"); participant.AddAction(action); var participants = new[] { participant }; partyViewModel = new PartyViewModel(participants); editPartyMemberActionCommand = new EditPartyMemberActionCommand(partyViewModel); }
public RemoveEnemyCommand(PartyViewModel allParticipantsViewModel) { this.allParticipantsViewModel = allParticipantsViewModel; }
public RemovePartyMemberActionCommand(PartyViewModel allParticipantsViewModel) { this.allParticipantsViewModel = allParticipantsViewModel; }
public EditPartyMemberCommand(PartyViewModel allParticipantsViewModel) { this.allParticipantsViewModel = allParticipantsViewModel; }
public AddEnemyActionCommand(PartyViewModel allParticipantsViewModel) { this.allParticipantsViewModel = allParticipantsViewModel; }
public void Setup() { enabledGoodGuy = new ActionParticipant("good guy", isEnemy: false); enabledBadGuy = new ActionParticipant("bad guy"); var disabledGoodGuy = new ActionParticipant("good guy", isEnemy: false); disabledGoodGuy.Enabled = false; var disabledBadGuy = new ActionParticipant("bad guy"); disabledBadGuy.Enabled = false; var participants = new[] { enabledGoodGuy, enabledBadGuy, disabledGoodGuy, disabledBadGuy }; goodAction = new BattleAction("Good"); badAction = new BattleAction("Bad"); enabledGoodGuy.AddAction(goodAction); enabledBadGuy.AddAction(badAction); partyViewModel = new PartyViewModel(participants); }
private void Load(Object sender, RoutedEventArgs e) { fileAccessor = SetupFileAccessor(); var party = SetupParty(fileAccessor); partyViewModel = new PartyViewModel(party); Title = GetVersion(); DataContext = partyViewModel; round = 0; }