public Form1() { InitializeComponent(); _presenter = new Presenters.FormPresenter(this); //BattleField = new BattleField(pictureBox1); //MessageQueue.OnMessage += MessageQueue_OnMessage; //_battleField.PlaceToken(this); }
public WebSocketClient(Presenters.FormPresenter presenter, string url) { _presenter = presenter; WSClient = new WebSocket(url); WSClient.EmitOnPing = true; WSClient.OnMessage += OnMessage; WSClient.OnError += OnError; WSClient.OnClose += OnClose; WSClient.OnOpen += OnOpen; //WSClient.Connect(); }
public ServerBattleField(Presenters.FormPresenter presenter, string nickName) : base(presenter, nickName) { _presenter = presenter; NickName = nickName; }
public BattleField(Presenters.FormPresenter presenter, string nickName) { _presenter = presenter; NickName = nickName; _chessboardDisplayer = _presenter.ChessboardDisplayer; }