You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Core/GameEngine/Include/Common/GameUtility.h
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@
18
18
19
19
#pragma once
20
20
21
+
#include"Lib/BaseType.h"
22
+
21
23
// For miscellaneous game utility functions.
22
24
23
25
classPlayer;
@@ -26,7 +28,8 @@ typedef Int PlayerIndex;
26
28
namespacerts
27
29
{
28
30
29
-
Bool localPlayerIsObserving();
31
+
boollocalPlayerIsObserving();
32
+
boollocalPlayerHasRadar();
30
33
Player* getObservedOrLocalPlayer(); ///< Get the current observed or local player. Is never null.
31
34
Player* getObservedOrLocalPlayer_Safe(); ///< Get the current observed or local player. Is never null, except when the application does not have players.
32
35
PlayerIndex getObservedOrLocalPlayerIndex_Safe(); ///< Get the current observed or local player index. Returns 0 when the application does not have players.
Copy file name to clipboardExpand all lines: Generals/Code/GameEngine/Include/Common/Radar.h
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -180,9 +180,9 @@ class Radar : public Snapshot,
180
180
Bool radarToWorld( const ICoord2D *radar, Coord3D *world ); ///< radar point to world point on terrain
181
181
Bool radarToWorld2D( const ICoord2D *radar, Coord3D *world ); ///< radar point to world point (x,y only!)
182
182
Bool worldToRadar( const Coord3D *world, ICoord2D *radar ); ///< translate world point to radar (x,y)
183
-
Bool localPixelToRadar( const ICoord2D *pixel, ICoord2D *radar ); ///< translate pixel (with UL of radar being (0,0)) to logical radar coords
183
+
Bool localPixelToRadar( const ICoord2D *pixel, ICoord2D *radar ); ///< translate pixel (with UL of radar being (0,0)) to logical radar coordinates
184
184
Bool screenPixelToWorld( const ICoord2D *pixel, Coord3D *world ); ///< translate pixel (with UL of the screen being (0,0)) to world position in the world
185
-
Object *objectUnderRadarPixel( const ICoord2D *pixel ); ///< return the object (if any) represented by the pixel coords passed in
185
+
Object *objectUnderRadarPixel( const ICoord2D *pixel ); ///< return the object (if any) represented by the pixel coordinates passed in
186
186
voidfindDrawPositions( Int startX, Int startY, Int width, Int height,
187
187
ICoord2D *ul, ICoord2D *lr ); ///< make translation for screen area of radar square to scaled aspect ratio preserving points inside the radar area
188
188
@@ -203,22 +203,22 @@ class Radar : public Snapshot,
0 commit comments