Exemplo n.º 1
0
 public static void upDateRoomLocation()
 {
     PlayUITopItem.UpdateRoom(GameState.currentRoom);
     PlayUIBottomItem.updateMessageBox(
         ConfigManager.GetStringResource(13) + GameState.currentRoom);
 }
Exemplo n.º 2
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);
            //************************************************************************************
        }
Exemplo n.º 3
0
 public static void moveBlockInstruction()
 {
     PlayUIBottomItem.updateMessageBox(
         ConfigManager.GetStringResource(49) + "\r\n" + ConfigManager.GetStringResource(48));
 }
Exemplo n.º 4
0
 public static void printScreenQuit01()
 {
     //*******************************************************************************
     PlayUIBottomItem.UpdateInstruction(PlayUIBottomItem.YES_INSTRUNCTION ^ PlayUIBottomItem.NO_INSTRUNCTION);
     PlayUIBottomItem.UpdateMenuOption(PlayUIBottomItem.CLEAR);
     PlayUIBottomItem.updateMessageBox(ConfigManager.GetStringResource(4) + "\n" + ConfigManager.GetStringResource(5));
     //*******************************************************************************
 }