예제 #1
0
        //Hide form and start tetris
        public void onTetrisRun(Random ownRandom, Random otherRandom)
        {
            clientForm.Hide();
            var          form           = new TetrisForm();
            TetrisClient attachedClient = (!mpButton.Checked) ? this : null;

            currentEngine = new TetrisEngine(form, !mpButton.Checked, attachedClient, ownRandom, otherRandom);
        }
예제 #2
0
 public TetrisEngine(TetrisForm form, bool ismultiplayerm, TetrisClient client, Random ownRandom, Random otherRandom)
 {
     tetrisClient = client;
     setup(form, ismultiplayerm, ownRandom, otherRandom);
 }