public Main(SevenBattleState battleState, EnemySkillMateria esm, Menu.ScreenState screenState) : base( 5, screenState.Height * 7 / 10 + 20, screenState.Width * 3 / 4, (screenState.Height * 5 / 20) - 25) { BattleState = battleState; int enemySkillCount = battleState.Seven.Data.EnemySkillCount; _totalRows = (enemySkillCount / COLUMNS) + ((enemySkillCount % COLUMNS == 0) ? 0 : 1); _spells = new Spell[_totalRows, COLUMNS]; for (int i = 0; i < enemySkillCount; i++) { if (((esm.AP >> i) & 1) > 0) { Spell s = battleState.Seven.Data.GetEnemySkill(esm.Abilities.ElementAt(i)); _spells[s.Order / COLUMNS, s.Order % COLUMNS] = s; } } Reset(); }
public BattleScreen(SevenBattleState battleState, ScreenState state) : this() { StatusBarLeft = new Screens.StatusBarLeft(battleState, state); StatusBarRight = new Screens.StatusBarRight(battleState, state); InfoBar = new Screens.InfoBar(battleState, state); EventBar = new Screens.EventBar(battleState, state); ItemMenu = new Screens.ItemMenu(battleState, state); WItemMenu = new Screens.WItemMenu(battleState, state); MagicInfo = new Screens.Magic.Info(battleState, state); EnemySkillInfo = new Screens.EnemySkill.Info(battleState, state); SummonMenuInfo = new Screens.Summon.Info(battleState, state); SelfSelector = new Screens.Selector.SelfSelector(battleState); TargetSelector = new Screens.Selector.TargetSelector(battleState); GroupSelector = new Screens.Selector.GroupSelector(battleState); AreaSelector = new Screens.Selector.AreaSelector(battleState); PausedBar = new Screens.PausedBar(state); _controllerStack = new List<IController>(); _controller = null; BattleState = battleState; }
public BattleScreen(SevenBattleState battleState, ScreenState state) : this() { StatusBarLeft = new Screens.StatusBarLeft(battleState, state); StatusBarRight = new Screens.StatusBarRight(battleState, state); InfoBar = new Screens.InfoBar(battleState, state); EventBar = new Screens.EventBar(battleState, state); ItemMenu = new Screens.ItemMenu(battleState, state); WItemMenu = new Screens.WItemMenu(battleState, state); MagicInfo = new Screens.Magic.Info(battleState, state); EnemySkillInfo = new Screens.EnemySkill.Info(battleState, state); SummonMenuInfo = new Screens.Summon.Info(battleState, state); SelfSelector = new Screens.Selector.SelfSelector(battleState); TargetSelector = new Screens.Selector.TargetSelector(battleState); GroupSelector = new Screens.Selector.GroupSelector(battleState); AreaSelector = new Screens.Selector.AreaSelector(battleState); PausedBar = new Screens.PausedBar(state); _controllerStack = new List <IController>(); _controller = null; BattleState = battleState; }
public Main(SevenBattleState battleState, EnemySkillMateria esm, Menu.ScreenState screenState) : base(5, screenState.Height * 7 / 10 + 20, screenState.Width * 3 / 4, (screenState.Height * 5 / 20) - 25) { BattleState = battleState; int enemySkillCount = battleState.Seven.Data.EnemySkillCount; _totalRows = (enemySkillCount / COLUMNS) + ((enemySkillCount % COLUMNS == 0) ? 0 : 1); _spells = new Spell[_totalRows, COLUMNS]; for (int i = 0; i < enemySkillCount; i++) { if (((esm.AP >> i) & 1) > 0) { Spell s = battleState.Seven.Data.GetEnemySkill(esm.Abilities.ElementAt(i)); _spells[s.Order / COLUMNS, s.Order % COLUMNS] = s; } } Reset(); }
public StatusBarRight(SevenBattleState battleState, ScreenState screenState) : base(screenState.Width * 2 / 5 + 12, screenState.Height * 7 / 10, screenState.Width * 3 / 5 - 17, screenState.Height * 5 / 20 - 5) { BattleState = battleState; }
public ItemMenu(SevenBattleState battleState, ScreenState screenState) : base(5, screenState.Height * 7 / 10 + 20, screenState.Width - 11, (screenState.Height * 5 / 20) - 25) { BattleState = battleState; }
protected BattleIcon(StateOfBattle battle, Combatant receiver) { X = receiver.X; Y = receiver.Y; Color = Colors.WHITE; AnimationTimer = new Timer(ANIMATION_DURATION); }
public StatusBarLeft(SevenBattleState battleState, ScreenState screenState) : base(5, screenState.Height * 7 / 10, screenState.Width * 2 / 5, (screenState.Height * 5 / 20) - 5) { BattleState = battleState; }
protected BattleIcon(StateOfBattle battle, Combatant receiver) { X = receiver.X; Y = receiver.Y; Color = Colors.WHITE; AnimationTimer = new Timer(ANIMATION_DURATION); }
public EventBar(SevenBattleState battleState, ScreenState screenState) : base(screenState.Width / 16, 20, screenState.Width * 7 / 8, screenState.Height / 10) { BattleState = battleState; }
public EventBar(SevenBattleState battleState, ScreenState screenState) : base( screenState.Width / 16, 20, screenState.Width * 7 / 8, screenState.Height / 10) { BattleState = battleState; }
public InfoBar(SevenBattleState battleState, ScreenState screenState) : base(5, screenState.Height * 6 / 10, screenState.Width - 10, (screenState.Height / 10) - 7, false) { BattleState = battleState; }
public StatusBarRight(SevenBattleState battleState, ScreenState screenState) : base( screenState.Width * 2 / 5 + 12, screenState.Height * 7 / 10, screenState.Width * 3 / 5 - 17, screenState.Height * 5 / 20 - 5) { BattleState = battleState; }
public ItemMenu(SevenBattleState battleState, ScreenState screenState) : base( 5, screenState.Height * 7 / 10 + 20, screenState.Width - 11, (screenState.Height * 5 / 20) - 25) { BattleState = battleState; }
public StatusBarLeft(SevenBattleState battleState, ScreenState screenState) : base( 5, screenState.Height * 7 / 10, screenState.Width * 2 / 5, (screenState.Height * 5 / 20) - 5) { BattleState = battleState; }
public Info(SevenBattleState battleState, ScreenState screenState) : base(screenState.Width * 3 / 4 + 12, screenState.Height * 7 / 10 + 20, screenState.Width / 4 - 17, (screenState.Height * 5 / 20) - 25) { Visible = false; BattleState = battleState; }
public Info(SevenBattleState battleState, ScreenState screenState) : base( screenState.Width * 3 / 4 + 12, screenState.Height * 7 / 10 + 20, screenState.Width / 4 - 17, (screenState.Height * 5 / 20) - 25) { Visible = false; BattleState = battleState; }
public InfoBar(SevenBattleState battleState, ScreenState screenState) : base( 5, screenState.Height * 6 / 10, screenState.Width - 10, (screenState.Height / 10) - 7, false) { BattleState = battleState; }
public DamageIcon(StateOfBattle battle, int amount, Combatant receiver, bool mp = false) : base(battle, receiver) { Message = amount.ToString(); if (mp) { Message += " MP"; } if (amount < 0) { Message = Message.Substring(1); // drop minus sign Color = Colors.GREEN; } }
public DamageIcon(StateOfBattle battle, int amount, Combatant receiver, bool mp = false) : base(battle, receiver) { Message = amount.ToString(); if (mp) { Message += " MP"; } if (amount < 0) { Message = Message.Substring(1); // drop minus sign Color = Colors.GREEN; } }
public Main(SevenBattleState battleState, IEnumerable <SummonMenuEntry> summons, Menu.ScreenState screenState) : base( 5, screenState.Height * 7 / 10 + 20, screenState.Width * 3 / 4, (screenState.Height * 5 / 20) - 25) { _totalRows = battleState.Seven.Data.SummonSpellCount; _summons = new SummonMenuEntry[_totalRows]; foreach (SummonMenuEntry s in summons) { _summons[s.Order] = s; } BattleState = battleState; Reset(); }
public GroupSelector(SevenBattleState battleState) : base(battleState) { }
public WItemMenu(SevenBattleState battleState, ScreenState screenState) : base(battleState, screenState) { }
public MissIcon(StateOfBattle battle, Combatant receiver) : base(battle, receiver) { Message = MISS; }
public TargetSelector(SevenBattleState battleState) : base(battleState) { _targets = new List<Combatant>(); }
public MissIcon(StateOfBattle battle, Combatant receiver) : base(battle, receiver) { Message = MISS; }
public RecoveryIcon(StateOfBattle battle, Combatant receiver) : base(battle, receiver) { Message = RECOVERY; Color = Colors.GREEN; }
protected Selector(SevenBattleState battleState) { BattleState = battleState; }
protected Selector(SevenBattleState battleState) { BattleState = battleState; }
public RecoveryIcon(StateOfBattle battle, Combatant receiver) : base(battle, receiver) { Message = RECOVERY; Color = Colors.GREEN; }
public DeathIcon(StateOfBattle battle, Combatant receiver) : base(battle, receiver) { Message = DEATH; }
public GroupSelector(SevenBattleState battleState) : base(battleState) { }
public DeathIcon(StateOfBattle battle, Combatant receiver) : base(battle, receiver) { Message = DEATH; }
public AreaSelector(SevenBattleState battleState) : base(battleState) { }
public SelfSelector(SevenBattleState battleState) : base(battleState) { }
public WSummon(SevenBattleState battleState, IEnumerable <SummonMenuEntry> spells, Menu.ScreenState screenState) : base(battleState, spells, screenState) { }
public TargetSelector(SevenBattleState battleState) : base(battleState) { _targets = new List <Combatant>(); }
public AreaSelector(SevenBattleState battleState) : base(battleState) { }
public WSummon(SevenBattleState battleState, IEnumerable<SummonMenuEntry> spells, Menu.ScreenState screenState) : base(battleState, spells, screenState) { }