Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 public ItemMenu(SevenBattleState battleState, ScreenState screenState)
     : base(5,
         screenState.Height * 7 / 10 + 20,
         screenState.Width - 11,
         (screenState.Height * 5 / 20) - 25)
 {
     BattleState = battleState;
 }
Exemplo n.º 7
0
        protected BattleIcon(StateOfBattle battle, Combatant receiver)
        {
            X = receiver.X;
            Y = receiver.Y;

            Color = Colors.WHITE;
            AnimationTimer = new Timer(ANIMATION_DURATION);
        }
Exemplo n.º 8
0
 public StatusBarLeft(SevenBattleState battleState, ScreenState screenState)
     : base(5,
         screenState.Height * 7 / 10,
         screenState.Width * 2 / 5,
         (screenState.Height * 5 / 20) - 5)
 {
     BattleState = battleState;
 }
Exemplo n.º 9
0
        protected BattleIcon(StateOfBattle battle, Combatant receiver)
        {
            X = receiver.X;
            Y = receiver.Y;

            Color          = Colors.WHITE;
            AnimationTimer = new Timer(ANIMATION_DURATION);
        }
Exemplo n.º 10
0
 public EventBar(SevenBattleState battleState, ScreenState screenState)
     : base(screenState.Width / 16,
         20,
         screenState.Width * 7 / 8,
         screenState.Height / 10)
 {
     BattleState = battleState;
 }
Exemplo n.º 11
0
 public EventBar(SevenBattleState battleState, ScreenState screenState)
     : base(
         screenState.Width / 16,
         20,
         screenState.Width * 7 / 8,
         screenState.Height / 10)
 {
     BattleState = battleState;
 }
Exemplo n.º 12
0
 public InfoBar(SevenBattleState battleState, ScreenState screenState)
     : base(5,
         screenState.Height * 6 / 10,
         screenState.Width - 10,
         (screenState.Height / 10) - 7,
         false)
 {
     BattleState = battleState;
 }
Exemplo n.º 13
0
 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;
 }
Exemplo n.º 14
0
 public ItemMenu(SevenBattleState battleState, ScreenState screenState)
     : base(
         5,
         screenState.Height * 7 / 10 + 20,
         screenState.Width - 11,
         (screenState.Height * 5 / 20) - 25)
 {
     BattleState = battleState;
 }
Exemplo n.º 15
0
 public StatusBarLeft(SevenBattleState battleState, ScreenState screenState)
     : base(
         5,
         screenState.Height * 7 / 10,
         screenState.Width * 2 / 5,
         (screenState.Height * 5 / 20) - 5)
 {
     BattleState = battleState;
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 17
0
 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;
 }
Exemplo n.º 18
0
 public InfoBar(SevenBattleState battleState, ScreenState screenState)
     : base(
         5,
         screenState.Height * 6 / 10,
         screenState.Width - 10,
         (screenState.Height / 10) - 7,
         false)
 {
     BattleState = battleState;
 }
Exemplo n.º 19
0
        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;
            }
        }
Exemplo n.º 20
0
        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;
            }
        }
Exemplo n.º 21
0
        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();
        }
Exemplo n.º 22
0
 public GroupSelector(SevenBattleState battleState)
     : base(battleState)
 {
 }
Exemplo n.º 23
0
 public WItemMenu(SevenBattleState battleState, ScreenState screenState)
     : base(battleState, screenState)
 {
 }
Exemplo n.º 24
0
 public MissIcon(StateOfBattle battle, Combatant receiver)
     : base(battle, receiver)
 {
     Message = MISS;
 }
Exemplo n.º 25
0
 public TargetSelector(SevenBattleState battleState)
     : base(battleState)
 {
     _targets = new List<Combatant>();
 }
Exemplo n.º 26
0
 public MissIcon(StateOfBattle battle, Combatant receiver)
     : base(battle, receiver)
 {
     Message = MISS;
 }
Exemplo n.º 27
0
 public RecoveryIcon(StateOfBattle battle, Combatant receiver)
     : base(battle, receiver)
 {
     Message = RECOVERY;
     Color = Colors.GREEN;
 }
Exemplo n.º 28
0
 protected Selector(SevenBattleState battleState)
 {
     BattleState = battleState;
 }
Exemplo n.º 29
0
 protected Selector(SevenBattleState battleState)
 {
     BattleState = battleState;
 }
Exemplo n.º 30
0
 public RecoveryIcon(StateOfBattle battle, Combatant receiver)
     : base(battle, receiver)
 {
     Message = RECOVERY;
     Color   = Colors.GREEN;
 }
Exemplo n.º 31
0
 public DeathIcon(StateOfBattle battle, Combatant receiver)
     : base(battle, receiver)
 {
     Message = DEATH;
 }
Exemplo n.º 32
0
 public GroupSelector(SevenBattleState battleState)
     : base(battleState)
 {
 }
Exemplo n.º 33
0
 public DeathIcon(StateOfBattle battle, Combatant receiver)
     : base(battle, receiver)
 {
     Message = DEATH;
 }
Exemplo n.º 34
0
 public AreaSelector(SevenBattleState battleState)
     : base(battleState)
 {
 }
Exemplo n.º 35
0
 public SelfSelector(SevenBattleState battleState)
     : base(battleState)
 {
 }
Exemplo n.º 36
0
 public WSummon(SevenBattleState battleState, IEnumerable <SummonMenuEntry> spells, Menu.ScreenState screenState)
     : base(battleState, spells, screenState)
 {
 }
Exemplo n.º 37
0
 public TargetSelector(SevenBattleState battleState)
     : base(battleState)
 {
     _targets = new List <Combatant>();
 }
Exemplo n.º 38
0
 public AreaSelector(SevenBattleState battleState)
     : base(battleState)
 {
 }
Exemplo n.º 39
0
 public WSummon(SevenBattleState battleState, IEnumerable<SummonMenuEntry> spells, Menu.ScreenState screenState)
     : base(battleState, spells, screenState)
 {
 }