Esempio n. 1
0
        /// <summary>
        /// Begin the Player's turn, asking for input to select a Ghost.
        /// </summary>
        public void DoTurn()
        {
            RenderInfo.UpdateGhostListing(myGhosts);

            // Ask for Input
            // Receive the Input as a Vector with x:[0,2] and y:[0,18]

            input = InputReceiver.AskGhostSelect();

            // Select a Ghost
            int nonNullGhosts = GetGhostNumbers(input.X);

            if (input.Y > nonNullGhosts)
            {
                SelectedGhost = myGhosts[input.X][nonNullGhosts];
            }
            else
            {
                SelectedGhost = myGhosts[input.X][input.Y];
            }

            UseGhost();
        }