예제 #1
0
        public Bord()
        {
            Console.WriteLine("CLIENT");
            Console.WriteLine("");
            InitializeComponent();
            gameLogics = GameLogics.GetInstance();
            ranking    = new PlayerRanking();
            pictures   = new List <PictureBox>();
            generatePictureList();
            firstTurn                      = true;
            RulesBox.Visible               = false;
            howManyPlayersLabel.Visible    = false;
            playerNameLabel.Visible        = false;
            twoPlayerGameButton.Visible    = false;
            threePlayerGameButton.Visible  = false;
            fourPlayerGameButton.Visible   = false;
            waitForAllPlayersLabel.Visible = false;
            rulesButton.Visible            = false;
            beurtInfoLabel.Visible         = false;
            startGameButton.Visible        = false;

            SendAllPicturesToBack();


            client = new ClientGanzenbord();
            client.makeConnectionWithTheServer();
        }
예제 #2
0
        public static GameLogics GetInstance()
        {
            if (Instance == null)
            {
                Instance = new GameLogics();
            }

            return(Instance);
        }
예제 #3
0
        public Player(int playerID, int ranking)
        {
            this.PlayerID = playerID;
            this.Field    = 0;
            this.Ranking  = ranking;

            Logics       = GameLogics.GetInstance();
            PlayNextTrun = true;
            Wait         = false;
            hasWon       = false;
        }