예제 #1
0
파일: seg001.cs 프로젝트: stavrossk/coab
        public static void PROGRAM()
        {
            /* Memory Init - Start */
            gbl.CombatMap = new CombatantMap[gbl.MaxCombatantCount + 1]; /* God damm 1-n arrays */
            for (int i = 0; i <= gbl.MaxCombatantCount; i++)
            {
                gbl.CombatMap[i] = new CombatantMap();
            }
            /* Memory Init - End */

            ovr003.SetupCommandTable();

            InitFirst();

            ItemLibrary.Read();

            seg044.PlaySound(Sound.sound_0);

            //Logging.Logger.Debug("Field_6 & 0x0F == 0");
            //foreach (var s in gbl.spellCastingTable )
            //{
            //    if (s != null && (s.field_6 & 0x0f) == 0)
            //    {
            //        Logging.Logger.Debug("{0} {1}", s.spellIdx, (Spells)s.spellIdx);
            //    }
            //}
            //Logging.Logger.Debug("");
            //Logging.Logger.Debug("Field_6 & 0x0F == 5");
            //foreach (var s in gbl.spellCastingTable)
            //{
            //    if (s != null && (s.field_6 & 0x0f) == 5)
            //    {
            //        Logging.Logger.Debug("{0} {1}", s.spellIdx, (Spells)s.spellIdx);
            //    }
            //}
            //Logging.Logger.Debug("");
            //Logging.Logger.Debug("Field_6 & 0x0F == 15");
            //foreach (var s in gbl.spellCastingTable)
            //{
            //    if (s != null && (s.field_6 & 0x0f) == 15)
            //    {
            //        Logging.Logger.Debug("{0} {1}", s.spellIdx, (Spells)s.spellIdx);
            //    }
            //}
            //Logging.Logger.Debug("");
            //Logging.Logger.Debug("Field_6 & 0x0F >= 8 <= 14");
            //foreach (var s in gbl.spellCastingTable)
            //{
            //    if (s != null)
            //    {
            //        int v = s.field_6 & 0x0f;
            //        if (v >= 8 && v <= 14)
            //        {
            //            Logging.Logger.Debug("{0} {1}", s.spellIdx, (Spells)s.spellIdx);

            //        }
            //    }
            //}
            //Logging.Logger.Debug("");
            //Logging.Logger.Debug("Field_6 & 0x0F otherwise");
            //foreach (var s in gbl.spellCastingTable)
            //{
            //    if (s != null)
            //    {
            //        int v = s.field_6 & 0x0f;
            //        if (v >= 1 && v <= 7 && v != 5)
            //        {
            //            Logging.Logger.Debug("{0} {1} {2}", s.spellIdx, (Spells)s.spellIdx, (v & 3)+1);
            //        }
            //    }
            //}
            //Logging.Logger.Debug("");



            if (Cheats.skip_title_screen == false)
            {
                ovr002.title_screen();
            }

            gbl.displayInputSecondsToWait = 30;
            gbl.displayInputTimeoutValue  = 'D';

            char inputKey = ovr027.displayInput(false, 0, gbl.defaultMenuColors, "Play Demo", "Curse of the Azure Bonds v1.3 ");

            gbl.displayInputSecondsToWait = 0;
            gbl.displayInputTimeoutValue  = '\0';

            if (inputKey == 'D')
            {
                gbl.inDemo = true;
            }

            if (Cheats.skip_copy_protection == false &&
                gbl.inDemo == false)
            {
                ovr004.copy_protection();
            }

            while (true)
            {
                if (gbl.inDemo == true)
                {
                    gbl.game_area      = 1;
                    gbl.game_speed_var = 9;
                }
                else
                {
                    gbl.game_area = 2;
                }

                if (gbl.inDemo == false)
                {
                    ovr018.startGameMenu();
                }

                ovr003.sub_29758();

                InitAgain();

                if (gbl.inDemo == true)
                {
                    ovr002.title_screen();
                    seg043.clear_keyboard();

                    gbl.displayInputSecondsToWait = 10;
                    gbl.displayInputTimeoutValue  = 'D';

                    inputKey = ovr027.displayInput(false, 0, gbl.defaultMenuColors, "Play Demo", "Curse of the Azure Bonds v1.3 ");

                    gbl.displayInputSecondsToWait = 0;
                    gbl.displayInputTimeoutValue  = '\0';

                    gbl.inDemo = (inputKey == 'D');

                    if (Cheats.skip_copy_protection == false &&
                        gbl.inDemo == false)
                    {
                        ovr004.copy_protection();
                    }

                    seg044.PlaySound(Sound.sound_0);
                }
            }
        }
예제 #2
0
        public static void PROGRAM()
        {
            /* Memory Init - Start */
            gbl.CombatMap = new CombatantMap[gbl.MaxCombatantCount + 1]; /* God damm 1-n arrays */
            for (int i = 0; i <= gbl.MaxCombatantCount; i++)
            {
                gbl.CombatMap[i] = new CombatantMap();
            }
            /* Memory Init - End */

            ovr003.SetupCommandTable();

            InitFirst();

            ItemLibrary.Read();

            seg044.PlaySound(Sound.sound_0);

            if (Cheats.skip_title_screen == false)
            {
                ovr002.title_screen();
            }

            gbl.displayInputSecondsToWait = 30;
            gbl.displayInputTimeoutValue  = 'D';

            char inputKey = ovr027.displayInput(false, 0, gbl.defaultMenuColors, "Play Demo",
                                                "Curse of the Azure Bonds v1.3 ");

            gbl.displayInputSecondsToWait = 0;
            gbl.displayInputTimeoutValue  = '\0';

            if (inputKey == 'D')
            {
                gbl.inDemo = true;
            }

            if (Cheats.skip_copy_protection == false &&
                gbl.inDemo == false)
            {
                ovr004.copy_protection();
            }

            while (true)
            {
                if (gbl.inDemo)
                {
                    gbl.game_area      = 1;
                    gbl.game_speed_var = 9;
                }
                else
                {
                    gbl.game_area = 2;
                }

                if (gbl.inDemo == false)
                {
                    ovr018.startGameMenu();
                }

                ovr003.sub_29758();

                InitAgain();

                if (gbl.inDemo)
                {
                    ovr002.title_screen();
                    seg043.clear_keyboard();

                    gbl.displayInputSecondsToWait = 10;
                    gbl.displayInputTimeoutValue  = 'D';

                    inputKey = ovr027.displayInput(false, 0, gbl.defaultMenuColors, "Play Demo",
                                                   "Curse of the Azure Bonds v1.3 ");

                    gbl.displayInputSecondsToWait = 0;
                    gbl.displayInputTimeoutValue  = '\0';

                    gbl.inDemo = (inputKey == 'D');

                    if (Cheats.skip_copy_protection == false &&
                        gbl.inDemo == false)
                    {
                        ovr004.copy_protection();
                    }

                    seg044.PlaySound(Sound.sound_0);
                }
            }
        }