예제 #1
0
 public Form1()
 {
     InitializeComponent();
     _presenter = new Presenters.FormPresenter(this);
     //BattleField = new BattleField(pictureBox1);
     //MessageQueue.OnMessage += MessageQueue_OnMessage;
     //_battleField.PlaceToken(this);
 }
예제 #2
0
 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();
 }
예제 #3
0
 public ServerBattleField(Presenters.FormPresenter presenter, string nickName)
     : base(presenter, nickName)
 {
     _presenter = presenter;
     NickName   = nickName;
 }
예제 #4
0
 public BattleField(Presenters.FormPresenter presenter, string nickName)
 {
     _presenter           = presenter;
     NickName             = nickName;
     _chessboardDisplayer = _presenter.ChessboardDisplayer;
 }