Example #1
0
 public Player(CoreClient client) {
     Game = client.Game;
     Type = (int)PlayerType.Undefined;
     State = PlayerState.None;
     _client = client;
     TurnSkip = 0;
 }
Example #2
0
 public Player(Game game, CoreClient client)
 {
     Game     = game;
     Type     = (int)PlayerType.Undefined;
     State    = PlayerState.None;
     _client  = client;
     TurnSkip = 0;
 }
Example #3
0
        public void AddClient(CoreClient client)
        {
            _clients.Add(client);
            Player player = new Player(Game, client);

            client.MessageReceived += (sender, e) => player.Parse(e.Message);
            client.Closed          += (sender, e) => player.OnDisconnected();
        }
Example #4
0
 public void RemoveClient(CoreClient client)
 {
     _removedClients.Add(client);
 }
Example #5
0
 public void AddClient(CoreClient client)
 {
     _clients.Add(client);
 }
Example #6
0
 public void RemoveClient(CoreClient client)
 {
     _removedClients.Add(client);
 }
Example #7
0
 public void AddClient(CoreClient client)
 {
     _clients.Add(client);
 }