Beispiel #1
0
        public FieldState(Seven seven, string formationId)
            : this(seven)
        {
            Random = new Random();

            Lua = Seven.GetLua();
            Lua[typeof(FieldState).Name] = this;
        }
Beispiel #2
0
        public BattleState(Seven seven, string formationId)
            : this(seven)
        {
            _turnQueue   = new Queue <Ally>();
            _battleIcons = new Queue <BattleIcon>();

            EventQueue = new PriorityQueue();

            Random = new Random();

            Lua = Seven.GetLua();
            Lua.DoString(Resource.GetTextFromResource("lua.scripts.battle", typeof(Seven).Assembly));
            Lua[typeof(BattleState).Name] = this;

            DeadEnemies = new List <Enemy>();

            CombatantClocks = new ClockCollection();

            _formation = seven.Data.GetFormation(formationId);
        }