Esempio n. 1
0
        public static void printInitScreen()
        {
            GameRoom      gm;
            Player        player;
            GameWorldInfo gwinfo;
            Item          item;

            gm     = GameDataFactory.curr_gwinfo.GetGameRoombyNumber(GameState.currentRoom);
            gwinfo = GameDataFactory.curr_gwinfo;
            player = GameDataFactory.curr_gwinfo.The_Player;

            //****************************************************************************
            PlayUIBottomItem.UpdateInstruction(
                PlayUIBottomItem.QUIT_INSTRUNCTION
                //PlayUIBottomItem.UP_INSTRUNCTION   ^
                //PlayUIBottomItem.DOWN_INSTRUNCTION   ^
                //PlayUIBottomItem.RIGHT_INSTRUNCTION   ^
                //PlayUIBottomItem.LEFT_INSTRUNCTION
                );

            PlayUIBottomItem.UpdateMenuOption(
                // PlayUIBottomItem.QUIT_INSTRUNCTION ^
                PlayUIBottomItem.UP_INSTRUNCTION ^
                PlayUIBottomItem.DOWN_INSTRUNCTION ^
                PlayUIBottomItem.RIGHT_INSTRUNCTION ^
                PlayUIBottomItem.LEFT_INSTRUNCTION
                );

            PlayUIBottomItem.updateMessageBox(
                ConfigManager.GetStringResource(2) + "\n" + ConfigManager.GetStringResource(3));


            PlayUITopItem.UpdateGameLevel(GameState.gameLevel);
            PlayUITopItem.UpdateExperienceLevel(GameState.experience);
            PlayUITopItem.UpdateNoOfRoom(gwinfo.NumberOfRooms);

            PlayUITopItem.UpdateHealthLevel(player.GetHealthLevel());

            PlayUITopItem.UpdateSilverLevel(GameState.CountSilverInInventory());
            PlayUITopItem.UpdateGoldLevel(GameState.CountGoldInInventory());
            PlayUITopItem.UpdateHealthPotion(GameState.CountHealthPotionInInventory());

            item = GameState.GetFirstArmourInInventory();
            if (item != null)
            {
                PlayUITopItem.UpdateArmourType(item.descriptions);
            }
            else
            {
                PlayUITopItem.UpdateArmourType("No");
            }

            item = GameState.GetFirstSwordInInventory();
            if (item != null)
            {
                PlayUITopItem.UpdateWeaponType(item.descriptions);
            }
            else
            {
                PlayUITopItem.UpdateWeaponType("No");
            }

            PlayUITopItem.UpdateScore(GameState.score);
            //************************************************************************************
        }