Esempio n. 1
0
        public Gamelevel03( )
        {
            name          = "==关卡03==";
            id            = 03;
            nextID        = 04;
            notPass       = true;
            gamelevelType = GamelevelType.Battle;
            maxRound      = 11;
            num1          = 1;
            num2          = 2;
            num3          = 1;

            _player   = Sally.Ins;
            enemy01AI = new Skill11( );
            enemy02AI = new Skill12( );
            enemy03AI = new Skill13( );

            allList.Clear( );
            liveList.Clear( );
            actSeqList.Clear( );
            tarsList.Clear( );

            allList.Add(new Enemy01( ));
            for (int i = 0; i < num2; i++)
            {
                RoleBase enemy = new Enemy02( );
                enemy.id += i;
                allList.Add(enemy);
            }
            allList.Add(new Enemy03( ));
        }
Esempio n. 2
0
        public Gamelevel02( )
        {
            name          = "==关卡02==";
            id            = 02;
            nextID        = 03;
            notPass       = true;
            gamelevelType = GamelevelType.Battle;
            maxRound      = 11;
            num1          = 2;
            num2          = 1;

            _player   = Sally.Ins;
            enemy01AI = new Skill11( );   //slime use skill11
            enemy02AI = new Skill12( );   //goblin use skill12

            BattleMng.Ins.GameLevelPass = false;
            allList.Clear( );
            liveList.Clear( );
            actSeqList.Clear( );
            tarsList.Clear( );

            for (int i = 0; i < num1; i++)
            {
                RoleBase enemy = new Enemy01( );
                enemy.id += i;
                allList.Add(enemy);
            }
            for (int i = 0; i < num2; i++)
            {
                RoleBase enemy = new Enemy02( );
                enemy.id += i;
                allList.Add(enemy);
            }
        }
Esempio n. 3
0
        //带入技能ID,并给skillMatch赋值
        public void MatchSkill(int id, out SkillBase skillMatch)
        {
            switch (id)
            {
            case 01:
                skillMatch = new Skill01( );
                break;

            case 02:
                skillMatch = new Skill02( );
                break;

            case 03:
                skillMatch = new Skill03( );
                break;

            case 04:
                skillMatch = new Skill04( );
                break;

            case 05:
                skillMatch = new Skill05( );
                break;

            case 11:
                skillMatch = new Skill11( );
                break;

            case 12:
                skillMatch = new Skill12( );
                break;

            case 13:
                skillMatch = new Skill13( );
                break;

            default:
                Util.Input("技能ID无效!");
                skillMatch = null;
                break;
            }
        }
Esempio n. 4
0
        public Gamelevel01( )
        {
            name          = "==关卡01==";
            id            = 01;
            nextID        = 02;
            notPass       = true;
            gamelevelType = GamelevelType.Battle;
            maxRound      = 11;
            num1          = 3;

            _player   = Sally.Ins;
            enemy01AI = new Skill11( );

            for (int i = 0; i < num1; i++)
            {
                RoleBase Enemy = new Enemy01( );
                Enemy.id += i;
                allList.Add(Enemy);
            }
        }