Beispiel #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();
        }
Beispiel #2
0
        public static GameLogics GetInstance()
        {
            if (Instance == null)
            {
                Instance = new GameLogics();
            }

            return(Instance);
        }
Beispiel #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;
        }