Exemplo n.º 1
0
 public void reciveGamePlayData(byte[] currentMap, GamePlayServerResponse response)
 {
     if (_gamePlayAction != null)
     {
         _gamePlayAction.BeginInvoke(Map.Deserialize(currentMap), response, a => _gamePlayAction.EndInvoke(a), null);
     }
 }
Exemplo n.º 2
0
 public GamePlayServerResponse(int roundNumber, Position myPosition, bool HasBigItem, int SmallItem, GamePlayServerResponse response)
 {
     RoundNumber      = roundNumber;
     _hasBigItem      = HasBigItem;
     SmallItemNumber  = SmallItem;
     this.RoundNumber = roundNumber;
     this.MyPosition  = myPosition;
     if (response != null)
     {
         Result      = response.Result;
         Message     = response.Message;
         ServerState = response.ServerState;
     }
 }
Exemplo n.º 3
0
 public GamePlayServerResponse(int roundNumber, Position myPosition, double MyCurrentPay, double TotalPay, bool HasBigItem, int SmallItem, MoveConsequence Consequence, GamePlayServerResponse response)
 {
     RoundNumber       = roundNumber;
     _myCurrentPay     = MyCurrentPay;
     _totalPay         = TotalPay;
     _hasBigItem       = HasBigItem;
     _smallItemNumber  = SmallItem;
     this.RoundNumber  = roundNumber;
     this.MyPosition   = myPosition;
     this._consequence = Consequence;
     if (response != null)
     {
         Result      = response.Result;
         Message     = response.Message;
         ServerState = response.ServerState;
     }
 }