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

  1. //
  2. // $Id: ClientController.h,v 1.6 1997/10/23 02:25:34 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.  
  28. #import <AppKit/AppKit.h>
  29. #import <Foundation/NSConnection.h>
  30. #import <Foundation/NSDistantObject.h>
  31. #import "Empire.h"
  32. #import "EmpireProtocols.h"
  33.  
  34. @class Brain;
  35. @class DistributedGameManager;
  36.  
  37. @interface ClientController : NSObject <EmpireClientConnectionProtocol>
  38. {
  39.     IBOutlet NSWindow *clientWindow;
  40.  
  41.     IBOutlet NSTextField *serverHostTextfield;
  42.     IBOutlet NSTextField *statusTextfield;
  43.  
  44.     IBOutlet NSTextView *messageText;
  45.  
  46.     Brain *brain;
  47.     NSConnection *serverConnection;
  48.     id empireServer;
  49. }
  50.  
  51. - (void) awakeFromNib;
  52.  
  53. - initWithBrain:(Brain *)theBrain;
  54. - (void) dealloc;
  55.  
  56. - (void) showPanel;
  57.  
  58. - (void) connectAction:sender;
  59. - (void) disconnectAction:sender;
  60.  
  61. - (void) showText:(NSString *)format, ...;
  62.  
  63. - (void) connectionDidDie:(NSNotification *)notification;
  64.  
  65. //======================================================================
  66. // EmpireClientConnectionProtocol
  67. //======================================================================
  68.  
  69. - (void) ping;
  70. - (void) aboutToDisconnect:sender;
  71. - (void) choosePlayer:(Player)number forMap:(Map *)worldMap master:masterGameManager;
  72.  
  73. @end
  74.