Exemple #1
0
 public Form1(int pacmanNumbers, int roundTime)
 {
     pacmans = new Dictionary <string, PictureBox>();
     createPacman(pacmanNumbers);
     InitializeComponent();
     timer1.Interval = roundTime;
     label2.Visible  = false;
     boardStatus     = new GetBoardStatus(getBoardStatus);
 }
Exemple #2
0
 public Form1(List <IPacmanServer> servers, int numberPlayers, List <string> plays, String nickname, int roundTime)
 {
     pacmans = new Dictionary <string, PictureBox>();
     createPacman(numberPlayers);
     InitializeComponent();
     label2.Visible      = false;
     clientApp           = new ClientApp(servers, this, nickname, roundTime, plays);
     refreshConversation = new RefreshConversation(refreshMessages);
     movePacmanDel       = new MovePacman(movePacman);
     boardStatus         = new GetBoardStatus(getBoardStatus);
 }
Exemple #3
0
        private String getBoardStatus()
        {
            String boardStatus = "---- BOARD STATUS ---- \r\n";

            foreach (Control c in this.Controls)
            {
                boardStatus += c.Name + ": " + c.Location;
                boardStatus += "\r\n";
            }

            boardStatus += "--------------------\r\n";
            return(boardStatus);
        }