Exemplo n.º 1
0
        private void LookAtAction()
        {
            //
            // display a list of traveler objects in space-time location and geta player choice
            //
            int gameObjectToLookAtId = _gameConsoleView.DisplayGetGameObjectToLookAt();

            //
            // display game object info
            //
            if (gameObjectToLookAtId != 0)
            {
                //
                // get the game object from the universe
                //
                if (gameObjectToLookAtId != 0)
                {
                    //
                    // get the game object from the universe
                    //
                    GameObject gameObject = _gameUniverse.GetGameObjectById(gameObjectToLookAtId);

                    //
                    // display infomation for the object chosen
                    //
                    _gameConsoleView.DisplayGameObjectInfo(gameObject);
                }
            }
        }