home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Games / Empire-0.6-MIS / Client.h < prev    next >
Encoding:
Text File  |  1997-10-23  |  1.3 KB  |  49 lines

  1. //
  2. // $Id: Client.h,v 1.4 1997/10/23 05:18:30 nygard Exp $
  3. //
  4.  
  5. //
  6. //  This file is a part of Empire, a game of exploration and conquest.
  7. //  Copyright (C) 1996  Steve Nygard
  8. //
  9. //  This program is free software; you can redistribute it and/or modify
  10. //  it under the terms of the GNU General Public License as published by
  11. //  the Free Software Foundation; either version 2 of the License, or
  12. //  (at your option) any later version.
  13. //
  14. //  This program is distributed in the hope that it will be useful,
  15. //  but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. //  GNU General Public License for more details.
  18. //
  19. //  You should have received a copy of the GNU General Public License
  20. //  along with this program; if not, write to the Free Software
  21. //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. //
  23. //  You may contact the author by:
  24. //     e-mail:  nygard@telusplanet.net
  25. //
  26.  
  27. #import <AppKit/AppKit.h>
  28. #import <Foundation/NSConnection.h>
  29.  
  30. @interface Client : NSObject
  31. {
  32.     NSString *hostname;
  33.     id client;
  34.     NSConnection *clientConnection;
  35.     int identifier;
  36. }
  37.  
  38. + (void) initialize;
  39.  
  40. - initWithClient:aClient fromHost:(NSString *)aHostname;
  41. - (void) dealloc;
  42.  
  43. - (NSString *) hostname;
  44. - (NSString *) numberedHostname;
  45. - client;
  46. - (NSConnection *) clientConnection;
  47.  
  48. @end
  49.