/[projectaxis]/projectaxis/projectAxis/src/core/pointerhub.h
ViewVC logotype

Diff of /projectaxis/projectAxis/src/core/pointerhub.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by leiavoia, Fri Jul 25 21:22:13 2003 UTC revision 1.2 by leiavoia, Wed Aug 20 18:20:36 2003 UTC
# Line 2  Line 2 
2  ====================  ====================
3  pointerhub.h  pointerhub.h
4  ====================  ====================
5  version 0.0.1  version 0.0.2
6  ====================  ====================
7    
8  PointerHub is a place to put all the "global variables" without actually making them global.  PointerHub is a place to put all the "global variables" without actually making them global.
# Line 19  themselves into PointerHub when they are Line 19  themselves into PointerHub when they are
19    
20  CHANGELOG:  CHANGELOG:
21  ----------------------  ----------------------
22    0.0.2 - August 15, 2003
23            - added turn manager pointer
24  0.0.1 - first run. everything seems to work so far. you can add more pointers to the list if later needed.  0.0.1 - first run. everything seems to work so far. you can add more pointers to the list if later needed.
25          the Get functions are really not totally necessary, but they are included for the benefit of          the Get functions are really not totally necessary, but they are included for the benefit of
26          classes that do *not* inherit from PointerHub.          classes that do *not* inherit from PointerHub.
# Line 48  class Map; Line 50  class Map;
50  class RenderMan;  class RenderMan;
51  class PG_Label;  class PG_Label;
52  class PG_MapWindow;  class PG_MapWindow;
53    class TurnMgr;
   
54    
55  class PointerHub {  class PointerHub {
56  public:  public:
# Line 69  public: Line 70  public:
70          static void SetStatus(PG_Label* s);          static void SetStatus(PG_Label* s);
71          static PG_Label* GetStatus();          static PG_Label* GetStatus();
72    
73            static void SetTurnMgr(TurnMgr* tm);
74            static TurnMgr* GetTurnMgr();
75    
76  protected:  protected:
77    
78          static Map* themap; // "map" causes conflicts in some files that use SDL / ParaGUI          static Map* themap; // "map" causes conflicts in some files that use STL
79          static RenderMan* rm;          static RenderMan* rm;
80          static PG_MapWindow* mw; // active map window (if there is one)          static PG_MapWindow* mw; // active map window (if there is one)
81          static PG_Label* status; // status bar (if there is one)          static PG_Label* status; // status bar (if there is one)
82            static TurnMgr* turnmgr; // the turn manager
83    
84          };          };
85    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26