public StatsSpecialEffects(Character c, Stats s, CombatTable t) { // It doesn't actually use the character or stats object being passed in. character = c; stats = s; combatTable = t; }
public NewCombatant( CombatTable combatants ) { editing = false; this.combatants = combatants; InitializeComponent(); textBlock15.Focus(); combatant = null; }
public InitiativeSet(CombatTable table) { InitializeComponent(); this.table = table; listBox1.DataContext = table; listBox1.SelectedItem = table[0]; initBox.Focus(); }
public static void combatTableFromJsonFile(CombatTable paramAdventure, string jsonFile) { JArray adventureJson = JArray.Parse(jsonFile); //Every Combatant foreach (JObject combatantJson in adventureJson.Children()) { CommAddCombatant commAdd = new CommAddCombatant(paramAdventure, combatantFromJsonObject(combatantJson)); commAdd.Execute(); } }
/// <summary> /// Shows debug info for this monster's combat maneuvers table /// </summary> public void ShowCombatTable() { Console.WriteLine($"CombatManeuverTable ID: {CombatTable.Id:X8}"); CombatTable.ShowCombatTable(); /*for (var i = 0; i < CombatTable.CMT.Count; i++) * { * var maneuver = CombatTable.CMT[i]; * Console.WriteLine($"{i} - {maneuver.Style} - {maneuver.Motion} - {maneuver.AttackHeight}"); * }*/ }
public Window1() { InitializeComponent(); // Select the text in a TextBox when it recieves focus. EventManager.RegisterClassHandler(typeof(TextBox), TextBox.PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(SelectivelyIgnoreMouseButton)); EventManager.RegisterClassHandler(typeof(TextBox), TextBox.GotKeyboardFocusEvent, new RoutedEventHandler(SelectAllText)); EventManager.RegisterClassHandler(typeof(TextBox), TextBox.MouseDoubleClickEvent, new RoutedEventHandler(SelectAllText)); listi = new CombatTable(); listBox1.DataContext = listi; execDirectory = Environment.CurrentDirectory; }
public static string jsonFileFromCombatTable(CombatTable combatants) { return JsonConvert.SerializeObject(combatants, Formatting.Indented); }
public CommClearCombatTable(CombatTable table) { this.table = table; }
public CommStartEncounter(CombatTable table) { this.table = table; }
public CommRepositionCombatant(CombatTable combatTable, Combatant combatant, int shift) { this.combatant = combatant; this.combatTable = combatTable; combatantPreviousIndex = combatTable.IndexOf(combatant); combatantNewIndex = combatantPreviousIndex + shift; }
public CommReorderTable(CombatTable combatTable, IEnumerable<Combatant> sortedCombatants) { this.combatTable = combatTable; this.previousSorting = combatTable.ToArray(); this.nextSorting = sortedCombatants; }
public CommRemoveCombatant(CombatTable combatTable, Combatant combatant) { this.combatant = combatant; this.combatTable = combatTable; }
public CommPreviousCombatant(CombatTable table) { this.table = table; }
public CommNextCombatant(CombatTable table) { this.table = table; }
public CommAddCombatant(CombatTable combatTable, Combatant combatant) { this.combatant = combatant; this.combatTable = combatTable; }
public CommFinishEncounter(CombatTable table) { this.table = table; }