public RoundDisplayWindow(Int32 round, IEnumerable<ActionParticipant> participants) { InitializeComponent(); roundViewModel = new RoundViewModel(round, participants); DataContext = roundViewModel; }
public void Setup() { var name = new ActionParticipant("Name"); var otherName = new ActionParticipant("Other Name"); var participants = new[] { name, otherName }; var action = new BattleAction("attack", 1, 1, true); name.Initiative = 2; otherName.Initiative = 1; name.AddAction(action); otherName.AddAction(action); roundViewModel = new RoundViewModel(1, participants); }
public void Setup() { var name = new ActionParticipant("name"); var otherName = new ActionParticipant("other name"); var participants = new[] { name, otherName }; var firstAction = new BattleAction("attack 1", 1, 1, true); var secondAction = new BattleAction("attack 2", 1, 1, true); name.AddAction(firstAction); otherName.AddAction(secondAction); name.Initiative = 2; otherName.Initiative = 1; roundViewModel = new RoundViewModel(1, participants); getNextActionsCommand = new GetNextActionsCommand(roundViewModel); }
public GetNextActionsCommand(RoundViewModel roundViewModel) { this.roundViewModel = roundViewModel; }