Ejemplo n.º 1
0
 void Dispose()
 {
     arena   = null;
     fighter = null;
     socket  = null;
     client  = null;
     buffer  = null;
     reader  = null;
 }
Ejemplo n.º 2
0
        public FantasyFighterPlayer(AddEvent events, TcpClient client)
        {
            this.fighter = new FighterState();

            this.socket = client;
            this.client = client.Client;
            this.events = events;
            reader      = new MessageReader();
            buffer      = new byte[4096];
            BeginReading();
        }