|
43 | 43 | #include "GameClient/Mouse.h" |
44 | 44 | #include "GameClient/RadiusDecal.h" |
45 | 45 | #include "GameClient/View.h" |
| 46 | +#include "GameNetwork/NetworkDefs.h" |
46 | 47 |
|
47 | 48 | // FORWARD DECLARATIONS /////////////////////////////////////////////////////////////////////////// |
48 | 49 | class Drawable; |
@@ -568,6 +569,9 @@ friend class Drawable; // for selection/deselection transactions |
568 | 569 | Bool isCameraTrackingDrawable() const { return m_cameraTrackingDrawable; } |
569 | 570 | void resetCamera(); |
570 | 571 |
|
| 572 | + void initObserverOverlay(); |
| 573 | + void cleanupObserverOverlay(); |
| 574 | + |
571 | 575 | virtual void addIdleWorker( Object *obj ); |
572 | 576 | virtual void removeIdleWorker( Object *obj, Int playerNumber ); |
573 | 577 | virtual void selectNextIdleWorker( void ); |
@@ -956,6 +960,31 @@ friend class Drawable; // for selection/deselection transactions |
956 | 960 | Bool m_clientQuiet; ///< When the user clicks exit,restart, etc. this is set true |
957 | 961 | ///< to skip some client sounds/fx during shutdown |
958 | 962 |
|
| 963 | + // Obs overlay |
| 964 | + static const Int numCols = 8; |
| 965 | + const wchar_t* headers[numCols] = { |
| 966 | + L"(T) Name", L"Army", L"Cash", L"Cash/m", L"(R) XP", L"SP", L"K/D", L"Power" |
| 967 | + }; |
| 968 | + |
| 969 | + struct ObsOverlayPlayerData |
| 970 | + { |
| 971 | + bool isPresent = false; |
| 972 | + PlayerData playerData; |
| 973 | + DisplayString* playerCellStrings[numCols]; |
| 974 | + }; |
| 975 | + |
| 976 | + ObsOverlayPlayerData m_mapOverlayPlayerData[MAX_SLOTS]; |
| 977 | + |
| 978 | + UnsignedInt lastUpdateFrame = 0; |
| 979 | + Int lastFontSize = -1; |
| 980 | + |
| 981 | + std::vector<DisplayString*> m_headerStrings; |
| 982 | + |
| 983 | + Int colWidths[numCols] = { 0 }; |
| 984 | + Int totalWidth = 0; |
| 985 | + Int totalHeight = 0; |
| 986 | + bool isUpdating = false; |
| 987 | + |
959 | 988 | // World Animation Data |
960 | 989 | WorldAnimationList m_worldAnimationList; ///< the list of world animations |
961 | 990 |
|
|
0 commit comments