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

  1. //
  2. // $Id: StatusController.h,v 1.6 1997/10/27 06:22:06 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 "Empire.h"
  29.  
  30. @class DistributedGameManager;
  31. @class GameManager;
  32.  
  33. @interface StatusController : NSObject
  34. {
  35.     IBOutlet NSWindow *statusWindow;
  36.  
  37.     IBOutlet NSTextField *gameStateTextfield;
  38.     IBOutlet NSTextField *currentTurnTextfield;
  39.     IBOutlet NSTableView *playerTable;
  40.  
  41.     GameManager *gameManager;
  42. }
  43.  
  44. + (void) initialize;
  45.  
  46. - initWithGameManager:(GameManager *)theGameManager;
  47. - (void) dealloc;
  48.  
  49. - (void) showPanel;
  50.  
  51. - (void) stopGame:sender;
  52.  
  53. - (void) updateCurrentTurn;
  54. - (void) updateGameStatus;
  55. - (void) updatePlayerTable;
  56.  
  57. - (BOOL) validateMenuItem:(NSMenuItem *)menuCell;
  58.  
  59. //======================================================================
  60. // NSTable Data Source
  61. //======================================================================
  62.  
  63. - (int) numberOfRowsInTableView:(NSTableView *)aTableView;
  64. - tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
  65.  
  66. @end
  67.