//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); }
public TetrisEngine(TetrisForm form, bool ismultiplayerm, TetrisClient client, Random ownRandom, Random otherRandom) { tetrisClient = client; setup(form, ismultiplayerm, ownRandom, otherRandom); }