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. |
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. |
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: |
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 |
|
|