Exemplo n.º 1
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                pressed_response = true;
                if (betting)
                {
                    betting = false;
                    cards_player.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    cards_player.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    cards_dealer.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    cards_dealer.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    JK.Noise("CardStart");
                    hiddencard   = 400;
                    value_player = 0;
                    int ace = 0;
                    foreach (Vector3 v in cards_player)
                    {
                        if (v.X == 13)
                        {
                            ace++;
                        }
                        else if (v.X <= 9)
                        {
                            value_player = value_player + (int)v.X + 1;
                        }
                        else
                        {
                            value_player = value_player + 10;
                        }
                    }
                    if (ace > 0)
                    {
                        while (ace > 0)
                        {
                            if (value_player <= 10)
                            {
                                value_player = value_player + 11;
                            }
                            else
                            {
                                value_player = value_player + 1;
                            }
                            ace--;
                        }
                    }
                    if (value_player == 21)
                    {
                        end           = true;
                        active_player = false;
                        coins_plus    = bet * 2;
                    }
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
            {
                pressed_response = true;
                if (betting && !end)
                {
                    if (selector_bet == 0)
                    {
                        bet = bet - Get_Bet();
                        if (bet < 0)
                        {
                            bet = 0;
                        }
                    }
                    if (selector_bet == 1)
                    {
                        bet = bet + Get_Bet();
                        if (bet > coins_old)
                        {
                            bet = coins_old;
                        }
                    }
                }
                if (!betting && active_player)
                {
                    if (selector_card == 0)
                    {
                        Add_Card();
                    }
                    if (selector_card == 1)
                    {
                        active_player = false;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                    {
                        betmulti++;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (betmulti > 0)
                    {
                        betmulti--;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (selector_bet > 0)
                    {
                        selector_bet--;
                    }
                }
                else
                {
                    if (selector_card > 0)
                    {
                        selector_card--;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (selector_bet < 1)
                    {
                        selector_bet++;
                    }
                }
                else
                {
                    if (selector_card < 1)
                    {
                        selector_card++;
                    }
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) != GhostState.released)
            {
                pressed_response = true;
                if (!betting && active_player)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Hit().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Hit().Y, SK.Collision_BlackJack_Hit().Width, SK.Collision_BlackJack_Hit().Height)))
                    {
                        if (selector_card == 0)
                        {
                            Add_Card();
                        }
                        else
                        {
                            selector_card = 0;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Stand().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Stand().Y, SK.Collision_BlackJack_Stand().Width, SK.Collision_BlackJack_Stand().Height)))
                    {
                        if (selector_card == 1)
                        {
                            active_player = false;
                        }
                        else
                        {
                            selector_card = 1;
                        }
                    }
                }
                if (betting && !end)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        bet = bet - Get_Bet(); if (bet < 0)
                        {
                            bet = 0;
                        }
                        selector_bet = 0;
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        bet = bet + Get_Bet(); if (bet > coins_old)
                        {
                            bet = coins_old;
                        }
                        selector_bet = 1;
                    }

                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up1().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up2().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down1().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down2().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                }
            }
            if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
            {
                if (!betting && active_player)
                {
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Hit().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Hit().Y, SK.Collision_BlackJack_Hit().Width, SK.Collision_BlackJack_Hit().Height)))
                    {
                        selector_card = 0;
                    }
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Stand().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Stand().Y, SK.Collision_BlackJack_Hit().Width, SK.Collision_BlackJack_Hit().Height)))
                    {
                        selector_card = 1;
                    }
                }
                if (betting && !end)
                {
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        selector_bet = 0;
                    }
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        selector_bet = 1;
                    }
                }
            }
            return("void");
        }
Exemplo n.º 2
0
        public override void Draw2()
        {
            if (SK.orientation <= 2)
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 80), Color.LightBlue);
            }
            else
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y), Color.LightBlue);
            }
            int i = 0;

            foreach (Vector3 v in cards_player)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 + 50 * i, SK.Get_GridSize().Y / 9 * 4 + 20 * i + v.Z), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
                i++;
            }
            i = 0;
            foreach (Vector3 v in cards_dealer)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 * 5 + 50 * i + v.Z, SK.Get_GridSize().Y / 9 + 15 * i), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
                i++;
            }
            if (active_player && !betting)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 * 5 + 50 + hiddencard, SK.Get_GridSize().Y / 9 + 15), new Rectangle(1, 1, 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
            }
            if (betting)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White);

                spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White);

                if (selector_bet == 0)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f);
                }
                if (selector_bet == 1)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f);
                }

                spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod);
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }
            else
            {
                if (!end)
                {
                    if (selector_card == 0)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White);
                    }
                    if (selector_card == 1)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White * 0.20f);
                    }
                    if (selector_card == 0)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White * 0.20f);
                    }
                    if (selector_card == 1)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White);
                    }
                }
                else
                {
                    spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White * 0.20f);
                    spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White * 0.20f);
                }
            }

            if (!betting && end)
            {
                if (value_dealer > 21)
                {
                    spriteBatch.DrawString(SK.font_score, "The House gone bust!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House gone bust!") / 2, Color.Black);
                }
                else if (value_player > 21)
                {
                    spriteBatch.DrawString(SK.font_score, "The Player gone bust!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player gone bust!") / 2, Color.Black);
                }
                else if (value_player == value_dealer && cards_player.Count > cards_dealer.Count)
                {
                    spriteBatch.DrawString(SK.font_score, "The Player wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player wins!") / 2, Color.Black);
                }
                else if (value_player == value_dealer && cards_player.Count == cards_dealer.Count)
                {
                    spriteBatch.DrawString(SK.font_score, "DRAW", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("DRAW") / 2, Color.Black);
                }
                else if (value_player == 21 && cards_player.Count == 2)
                {
                    spriteBatch.DrawString(SK.font_score, "BLACK JACK", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("BLACK JACK") / 2, Color.Black);
                }
                else if (value_player == value_dealer && cards_player.Count < cards_dealer.Count)
                {
                    spriteBatch.DrawString(SK.font_score, "The House wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House wins!") / 2, Color.Black);
                }
                else if (value_player > value_dealer)
                {
                    spriteBatch.DrawString(SK.font_score, "The Player wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player wins!") / 2, Color.Black);
                }
                else
                {
                    spriteBatch.DrawString(SK.font_score, "The House wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House wins!") / 2, Color.Black);
                }
            }

            if (!betting)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2(), Color.White);
            }

            if (!betting && !end)
            {
                spriteBatch.DrawString(SK.font_score, "" + value_player, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(50, 45), Color.LightGray);
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (!betting && end)
            {
                if (coins_plus > 0)
                {
                    spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen);
                }
                if (coins_plus < 0)
                {
                    spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed);
                }
                spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod);
            }
        }
Exemplo n.º 3
0
        public override void Draw2()
        {
            if (SK.orientation <= 2)
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 80), Color.PaleTurquoise);
            }
            else
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y), Color.PaleTurquoise);
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1() + new Vector2(70 + move * 2, 150), new Rectangle(1 + (int)(71 * card1.X), 1 + (int)(96 * card1.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2() + new Vector2(70 + move, 150), new Rectangle(1 + (int)(71 * card2.X), 1 + (int)(96 * card2.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans2, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3() + new Vector2(70, 150), new Rectangle(1 + (int)(71 * card3.X), 1 + (int)(96 * card3.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans3, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4() + new Vector2(70 - move, 150), new Rectangle(1 + (int)(71 * card4.X), 1 + (int)(96 * card4.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans4, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5() + new Vector2(70 - move * 2, 150), new Rectangle(1 + (int)(71 * card5.X), 1 + (int)(96 * card5.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans5, SpriteEffects.None, 0.0f);

            if (hold1)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.Gray * 0.25f);
            }
            if (hold2)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.Gray * 0.25f);
            }
            if (hold3)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.Gray * 0.25f);
            }
            if (hold4)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.Gray * 0.25f);
            }
            if (hold5)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.Gray * 0.25f);
            }

            if (!betting && !end)
            {
                if (selector_hold == 1)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.Pink * 0.50f);
                }
                if (selector_hold == 2)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.Pink * 0.50f);
                }
                if (selector_hold == 3)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.Pink * 0.50f);
                }
                if (selector_hold == 4)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.Pink * 0.50f);
                }
                if (selector_hold == 5)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.Pink * 0.50f);
                }
            }

            if (betting && !end)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White);

                spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White);

                if (selector_bet == 0)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f);
                }
                if (selector_bet == 1)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f);
                }

                spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod);
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (!betting)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3(), Color.White);
            }

            if (!betting && !end)
            {
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (!betting && end)
            {
                spriteBatch.DrawString(SK.font_score, hand, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.font_score.MeasureString(hand).X / 2, SK.Position_Bet_Grid3().Y - 25), Color.Black);
                if (coins_plus > 0)
                {
                    spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen);
                }
                if (coins_plus < 0)
                {
                    spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed);
                }
                spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod);
            }
        }
Exemplo n.º 4
0
        public override string Update2()
        {
            if (move != 0)
            {
                if (movingIN)
                {
                    move += 5;
                    if (move == 165)
                    {
                        movingIN = false;
                        Sort();
                    }
                }
                else
                {
                    move -= 5;
                    if (move == 0)
                    {
                        Result();
                    }
                }
            }
            else if (active_transition)
            {
                if (transition_up)
                {
                    if (trans0 < 2.00f)
                    {
                        trans0 = trans0 + 0.05f;
                        if (betting)
                        {
                            trans1 = trans1 + 0.05f;
                            trans2 = trans2 + 0.05f;
                            trans3 = trans3 + 0.05f;
                            trans4 = trans4 + 0.05f;
                            trans5 = trans5 + 0.05f;
                        }
                        else
                        {
                            if (!hold1)
                            {
                                trans1 = trans1 + 0.05f;
                            }
                            if (!hold2)
                            {
                                trans2 = trans2 + 0.05f;
                            }
                            if (!hold3)
                            {
                                trans3 = trans3 + 0.05f;
                            }
                            if (!hold4)
                            {
                                trans4 = trans4 + 0.05f;
                            }
                            if (!hold5)
                            {
                                trans5 = trans5 + 0.05f;
                            }
                        }
                    }
                    else
                    {
                        transition_up     = false;
                        active_transition = false;
                        if (betting)
                        {
                            betting = false;
                        }
                        else
                        {
                            move    += 5;
                            movingIN = true;
                        }
                    }
                }
                else
                {
                    if (trans0 > 0.00f)
                    {
                        trans0 = trans0 - 0.05f;
                        if (betting)
                        {
                            trans1 = trans1 - 0.05f;
                            trans2 = trans2 - 0.05f;
                            trans3 = trans3 - 0.05f;
                            trans4 = trans4 - 0.05f;
                            trans5 = trans5 - 0.05f;
                        }
                        else
                        {
                            if (!hold1)
                            {
                                trans1 = trans1 - 0.05f;
                            }
                            if (!hold2)
                            {
                                trans2 = trans2 - 0.05f;
                            }
                            if (!hold3)
                            {
                                trans3 = trans3 - 0.05f;
                            }
                            if (!hold4)
                            {
                                trans4 = trans4 - 0.05f;
                            }
                            if (!hold5)
                            {
                                trans5 = trans5 - 0.05f;
                            }
                        }
                    }
                    else
                    {
                        transition_up = true;
                        if (!hold1)
                        {
                            card1 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold2)
                        {
                            card2 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold3)
                        {
                            card3 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold4)
                        {
                            card4 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold5)
                        {
                            card5 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                    }
                }
            }
            else
            {
                if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
                {
                    active_transition = true; pressed_response = true;
                }
                if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
                {
                    pressed_response = true;
                    if (betting && !end)
                    {
                        if (selector_bet == 0)
                        {
                            bet = bet - Get_Bet();
                            if (bet < 0)
                            {
                                bet = 0;
                            }
                        }
                        if (selector_bet == 1)
                        {
                            bet = bet + Get_Bet();
                            if (bet > coins_old)
                            {
                                bet = coins_old;
                            }
                        }
                    }
                    if (!betting && !end)
                    {
                        if (selector_hold == 1)
                        {
                            if (hold1)
                            {
                                hold1 = false;
                            }
                            else
                            {
                                hold1 = true;
                            }
                        }
                        if (selector_hold == 2)
                        {
                            if (hold2)
                            {
                                hold2 = false;
                            }
                            else
                            {
                                hold2 = true;
                            }
                        }
                        if (selector_hold == 3)
                        {
                            if (hold3)
                            {
                                hold3 = false;
                            }
                            else
                            {
                                hold3 = true;
                            }
                        }
                        if (selector_hold == 4)
                        {
                            if (hold4)
                            {
                                hold4 = false;
                            }
                            else
                            {
                                hold4 = true;
                            }
                        }
                        if (selector_hold == 5)
                        {
                            if (hold5)
                            {
                                hold5 = false;
                            }
                            else
                            {
                                hold5 = true;
                            }
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (selector_bet > 0)
                        {
                            selector_bet--;
                        }
                    }
                    else
                    {
                        if (selector_hold > 1)
                        {
                            selector_hold--;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (selector_bet < 1)
                        {
                            selector_bet++;
                        }
                    }
                    else
                    {
                        if (selector_hold < 5)
                        {
                            selector_hold++;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.button_ok_P1) != GhostState.released)
                {
                    pressed_response = true;
                    if (!betting)
                    {
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold1().Y, 150, 500)))
                        {
                            selector_hold = 1; if (hold1)
                            {
                                hold1 = false;
                            }
                            else
                            {
                                hold1 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold2().Y, 150, 500)))
                        {
                            selector_hold = 2; if (hold2)
                            {
                                hold2 = false;
                            }
                            else
                            {
                                hold2 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold3().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold3().Y, 150, 500)))
                        {
                            selector_hold = 3; if (hold3)
                            {
                                hold3 = false;
                            }
                            else
                            {
                                hold3 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold4().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold4().Y, 150, 500)))
                        {
                            selector_hold = 4; if (hold4)
                            {
                                hold4 = false;
                            }
                            else
                            {
                                hold4 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold5().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold5().Y, 150, 500)))
                        {
                            selector_hold = 5; if (hold5)
                            {
                                hold5 = false;
                            }
                            else
                            {
                                hold5 = true;
                            }
                        }
                    }
                    else
                    {
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                        {
                            bet = bet - Get_Bet(); if (bet < 0)
                            {
                                bet = 0;
                            }
                            selector_bet = 0;
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                        {
                            bet = bet + Get_Bet(); if (bet > coins_old)
                            {
                                bet = coins_old;
                            }
                            selector_bet = 1;
                        }

                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up1().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                        {
                            if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                            {
                                betmulti++;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up2().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                        {
                            if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                            {
                                betmulti++;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down1().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                        {
                            if (betmulti > 0)
                            {
                                betmulti--;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down2().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                        {
                            if (betmulti > 0)
                            {
                                betmulti--;
                            }
                        }
                    }
                }
                if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
                {
                    if (!betting)
                    {
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold1().Y, 150, 500)))
                        {
                            selector_hold = 1;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold2().Y, 150, 500)))
                        {
                            selector_hold = 2;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold3().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold3().Y, 150, 500)))
                        {
                            selector_hold = 3;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold4().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold4().Y, 150, 500)))
                        {
                            selector_hold = 4;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold5().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold5().Y, 150, 500)))
                        {
                            selector_hold = 5;
                        }
                    }
                    else
                    {
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                        {
                            selector_bet = 0;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                        {
                            selector_bet = 1;
                        }
                    }
                }
            }
            return("void");
        }
Exemplo n.º 5
0
        public override void Draw2()
        {
            spriteBatch.Draw(SK.texture_background_slotmachine1, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.texture_background_slotmachine1.Width / 2, 0), Color.White);
            if (active_spin)
            {
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 4 - pos_wheel1), new Rectangle(1 + (116 * grid[0, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 3 - pos_wheel1), new Rectangle(1 + (116 * grid[1, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 2 - pos_wheel1), new Rectangle(1 + (116 * grid[2, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 1 - pos_wheel1), new Rectangle(1 + (116 * grid[3, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - pos_wheel1), new Rectangle(1 + (116 * grid[4, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 1 - pos_wheel1), new Rectangle(1 + (116 * grid[5, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 2 - pos_wheel1), new Rectangle(1 + (116 * grid[6, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 3 - pos_wheel1), new Rectangle(1 + (116 * grid[7, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 4 - pos_wheel1), new Rectangle(1 + (116 * grid[8, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 4 - pos_wheel2), new Rectangle(1 + (116 * grid[0, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 3 - pos_wheel2), new Rectangle(1 + (116 * grid[1, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 2 - pos_wheel2), new Rectangle(1 + (116 * grid[2, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 1 - pos_wheel2), new Rectangle(1 + (116 * grid[3, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - pos_wheel2), new Rectangle(1 + (116 * grid[4, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 1 - pos_wheel2), new Rectangle(1 + (116 * grid[5, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 2 - pos_wheel2), new Rectangle(1 + (116 * grid[6, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 3 - pos_wheel2), new Rectangle(1 + (116 * grid[7, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 4 - pos_wheel2), new Rectangle(1 + (116 * grid[8, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 4 - pos_wheel3), new Rectangle(1 + (116 * grid[0, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 3 - pos_wheel3), new Rectangle(1 + (116 * grid[1, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 2 - pos_wheel3), new Rectangle(1 + (116 * grid[2, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 1 - pos_wheel3), new Rectangle(1 + (116 * grid[3, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - pos_wheel3), new Rectangle(1 + (116 * grid[4, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 1 - pos_wheel3), new Rectangle(1 + (116 * grid[5, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 2 - pos_wheel3), new Rectangle(1 + (116 * grid[6, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 3 - pos_wheel3), new Rectangle(1 + (116 * grid[7, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 4 - pos_wheel3), new Rectangle(1 + (116 * grid[8, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (end)
            {
                if (active_line1)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line1, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line2)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line2, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line3)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line3, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line4)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line4, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line5)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line5, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
            }

            if (SK.orientation <= 2)
            {
                spriteBatch.Draw(SK.texture_background_slotmachine2, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 5), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_background_slotmachine2, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y - 5), Color.White);
            }

            if (multi >= 1)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point1, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 243 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 2)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point2, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 142 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 3)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point3, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 346 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 4)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point4, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 35 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 5)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point5, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 455 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (!active_spin && !end)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White);

                spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_left, SK.Position_DisplayEdge() + SK.Position_Bet_Left(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_right, SK.Position_DisplayEdge() + SK.Position_Bet_Right(), Color.White);

                if (selector_bet == 0)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f);
                }
                if (selector_bet == 1)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f);
                }

                spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod);
                spriteBatch.DrawString(SK.font_score, multi + "x" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString(multi + "x" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (active_spin || end)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3(), Color.White);
            }

            if (active_spin && !end)
            {
                spriteBatch.DrawString(SK.font_score, multi + "x" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString(multi + "x" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (end)
            {
                if (coins_plus > 0)
                {
                    spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen);
                }
                if (coins_plus < 0)
                {
                    spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed);
                }
                spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod);
            }
        }
Exemplo n.º 6
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                Spin(); pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                    {
                        betmulti++;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (betmulti > 0)
                    {
                        betmulti--;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (selector_bet > 0)
                    {
                        selector_bet--;
                    }
                    else
                    {
                        if (multi > 1)
                        {
                            multi--; Change_Bet(1);
                        }
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (selector_bet < 1)
                    {
                        selector_bet++;
                    }
                    else
                    {
                        if (multi < 5)
                        {
                            multi++; Change_Bet(2);
                        }
                    }
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
            {
                pressed_response = true;
                if (!active_spin && !end)
                {
                    Change_Bet(0);
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) != GhostState.released)
            {
                pressed_response = true;
                if (!active_spin && !end)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        selector_bet = 0; Change_Bet(0);
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        selector_bet = 1; Change_Bet(0);
                    }

                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up1().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up2().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down1().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down2().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Left().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Left().Y, SK.texture_casino_bet_left.Width, SK.texture_casino_bet_left.Height)))
                    {
                        if (multi > 1)
                        {
                            multi--; Change_Bet(1);
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Right().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Right().Y, SK.texture_casino_bet_right.Width, SK.texture_casino_bet_right.Height)))
                    {
                        if (multi < 5)
                        {
                            multi++; Change_Bet(2);
                        }
                    }
                }
            }
            if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
            {
                if (!active_spin && !end)
                {
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        selector_bet = 0;
                    }
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        selector_bet = 1;
                    }
                }
            }
            return("void");
        }