Exemplo n.º 1
0
        public AndroidBlindState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            AndroidButton pickwords = new AndroidButton(gameContent.PickWords, gameContent.Font)
            {
                Position = new Vector2(100, 100)
            };
            AndroidButton yesButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2 - 400, Table.ScreenHeight / 2 - 100),
                Text     = "Yes"
            };
            AndroidButton noButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2 + 150, Table.ScreenHeight / 2 - 100),
                Text     = "No"
            };

            yesButton.Click += yesButton_Click;
            noButton.Click  += noButton_Click;
            _components      = new List <AndroidButton>()
            {
                yesButton,
                noButton,
                pickwords
            };
        }
Exemplo n.º 2
0
        public AndroidPickingState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            AndroidButton doneButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(240, 50),
                Text     = "Done?",
                Color    = Color.White
            };

            swapButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(740, 50),
                Text     = "Swap?",
                Color    = Color.White
            };

            swapButton.Click += SwapButton_Click;
            doneButton.Click += DoneButton_Click;
            _components       = new List <AndroidButton>()
            {
                swapButton,
                doneButton
            };
            _numCardsSelected = 0;
        }
Exemplo n.º 3
0
        public AndroidRoundOverState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            NextRound  = false;
            IsTrickSet = false;
            AndroidButton doneButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2 - 125, Table.ScreenHeight / 2 - 300),
                Text     = "Next Round"
            };

            doneButton.Click += DoneButton_Click;

            _components = new List <AndroidComponent>()
            {
                doneButton,
            };

            AndroidButton trickWinner = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2 - 125, Table.ScreenHeight / 2 + 200),
                Color    = Color.White
            };
            AndroidButton trickScore = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2 - 125, Table.ScreenHeight / 2 + 300),
                Color    = Color.White
            };

            _roundStats = new List <AndroidButton>()
            {
                trickWinner,
                trickScore
            };
        }
Exemplo n.º 4
0
        public AndroidTitleScreen(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            _button = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(table.ScreenWidth / 2 - 130, table.ScreenHeight / 2 + 200),
                Text     = "Start Game!"
            };

            _button.Click += Button_Click;

            _logo = new AndroidButton(gameContent.Logo, gameContent.Font)
            {
                Position = new Vector2(-100, table.ScreenHeight / 8)
            };

            _backgroundTexture = gameContent.TableTop;
            table.InitializeGameContent();
        }
Exemplo n.º 5
0
        public AndroidPlayState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            _selectedPlayCard = null;
            _wantsToPlay      = false;
            IsTrickSet        = false;
            _areBarsSet       = false;
            LeaderboardSet    = false;
            AndroidButton rankInfo = new AndroidButton(Table.GameContent.Ranks, Table.GameContent.Font)
            {
                Position = new Vector2(0, Table.ScreenHeight / 2 - 100)
            };

            _pickerInfo = new AndroidButton(Table.GameContent.Button3, Table.GameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth * 0.8f, Table.ScreenHeight * 0.25f)
            };
            _components = new List <AndroidButton>()
            {
                rankInfo,
                _pickerInfo
            };
        }
Exemplo n.º 6
0
 public AndroidPreGameState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
 {
 }
Exemplo n.º 7
0
        public AndroidTableOverState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            var offset     = 50;
            var halfscreen = table.ScreenHeight / 2;

            AndroidButton playAgain = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(240, table.ScreenHeight / 2 - 100),
                Text     = "Play Again"
            };
            AndroidButton doneButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(740, table.ScreenHeight / 2 - 100),
                Text     = "Quit"
            };

            doneButton.Click += DoneButton_Click;
            playAgain.Click  += PlayAgain_Click;
            _components       = new List <AndroidButton>
            {
                playAgain,
                doneButton
            };

            _finalScoreBanner = new AndroidFinalScoreBanner(gameContent.Button4, gameContent.FinalScoreFont)
            {
                Position = new Vector2(table.ScreenWidth / 4.0f - 100, table.ScreenHeight / 4.0f - 50)
            };
            AndroidGameOverScores playerOneScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerTwoScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerThreeScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerFourScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerFiveScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            _leaderboardpanel = new List <AndroidGameOverScores>()
            {
                playerOneScore,
                playerTwoScore,
                playerThreeScore,
                playerFourScore,
                playerFiveScore
            };
        }
Exemplo n.º 8
0
 protected AndroidState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent)
 {
     Table          = table;
     GraphicsDevice = graphicsDevice;
     GameContent    = gameContent;
 }
Exemplo n.º 9
0
        public AndroidGameOverState(AndroidSheepGame table, GraphicsDevice graphicsDevice, GameContent gameContent) : base(table, graphicsDevice, gameContent)
        {
            _nextGame = false;
            AndroidButton doneButton = new AndroidButton(gameContent.Button, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2 - 130, Table.ScreenHeight / 2 - 300),
                Text     = "Next Game",
                Color    = Color.White
            };

            doneButton.Click += DoneButton_Click;

            _pickerScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(Table.ScreenWidth / 2.0f - 115, Table.ScreenWidth / 5.0f - 20)
            };

            _components = new List <AndroidButton>()
            {
                doneButton,
            };
            var offset     = 50;
            var halfscreen = table.ScreenHeight / 2;

            AndroidGameOverScores playerOneScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerTwoScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerThreeScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerFourScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            offset += gameContent.Button2.Width - 50;
            AndroidGameOverScores playerFiveScore = new AndroidGameOverScores(gameContent.Button3, gameContent.Font)
            {
                Position = new Vector2(offset, halfscreen)
            };

            _leaderboardpanel = new List <AndroidGameOverScores>()
            {
                playerOneScore,
                playerTwoScore,
                playerThreeScore,
                playerFourScore,
                playerFiveScore
            };
        }