Exemple #1
0
        ///<summary>
        /// display look around
        /// </summary>
        public void DisplayLookAround()
        {
            //
            // get current location
            //
            SpaceTimeLocation currentSpaceTimeLocation = _gameUniverse.GetSpaceTimeLocationById(_gamePlayer.SpaceTimeLocationID);

            //
            // get list of game objects in current location
            //
            List <GameObject> gameObjectsInCurrentSpaceTimeLocation = _gameUniverse.GetGameObjectByLocationId(_gamePlayer.SpaceTimeLocationID);

            //
            // get list of NPCs in current location
            //
            List <Npc> npcsInCurrentSpactTimeLocation = _gameUniverse.GetNpcsByLocationId(_gamePlayer.SpaceTimeLocationID);

            string messageBoxText = Text.LookAround(currentSpaceTimeLocation) + Environment.NewLine + Environment.NewLine;

            messageBoxText += Text.GameObjectsChooseList(gameObjectsInCurrentSpaceTimeLocation);
            messageBoxText += Text.NpcsChooseList(npcsInCurrentSpactTimeLocation);

            DisplayGamePlayScreen("Current Location", Text.LookAround(currentSpaceTimeLocation), ActionMenu.MainMenu, "");
        }