Skip to content

Commit bcfa380

Browse files
committed
style: Convert leading spaces to tabs in GeneralsMD GameEngine
1 parent d8d2a8d commit bcfa380

445 files changed

Lines changed: 8063 additions & 8063 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

GeneralsMD/Code/GameEngine/Include/Common/AcademyStats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class AcademyStats : public Snapshot
243243
//26) Player did not use the new "double click location attack move/guard"
244244
UnsignedInt m_doubleClickAttackMoveOrdersGiven;
245245

246-
//27) Built barracks within 5 minutes?
246+
//27) Built barracks within 5 minutes?
247247
Bool m_builtBarracksWithinFiveMinutes;
248248

249249
//28) Built war factory within 10 minutes?

GeneralsMD/Code/GameEngine/Include/Common/ActionManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ class ActionManager : public SubsystemInterface
9191
Bool canDisableBuildingViaHacking( const Object *obj, const Object *objectToHack, CommandSourceType commandSource );
9292
Bool canDoSpecialPowerAtLocation( const Object *obj, const Coord3D *loc, CommandSourceType commandSource, const SpecialPowerTemplate *spTemplate, const Object *objectInWay, UnsignedInt commandOptions, Bool checkSourceRequirements = true );
9393
Bool canDoSpecialPowerAtObject( const Object *obj, const Object *target, CommandSourceType commandSource, const SpecialPowerTemplate *spTemplate, UnsignedInt commandOptions, Bool checkSourceRequirements = true);
94-
Bool canDoSpecialPower( const Object *obj, const SpecialPowerTemplate *spTemplate, CommandSourceType commandSource, UnsignedInt commandOptions, Bool checkSourceRequirements = true );
94+
Bool canDoSpecialPower( const Object *obj, const SpecialPowerTemplate *spTemplate, CommandSourceType commandSource, UnsignedInt commandOptions, Bool checkSourceRequirements = true );
9595
Bool canMakeObjectDefector( const Object *obj, const Object *objectToMakeDefector, CommandSourceType commandSource );
9696
Bool canFireWeaponAtLocation( const Object *obj, const Coord3D *loc, CommandSourceType commandSource, const WeaponSlotType slot, const Object *objectInWay );
9797
Bool canFireWeaponAtObject( const Object *obj, const Object *target, CommandSourceType commandSource, const WeaponSlotType slot );
98-
Bool canFireWeapon( const Object *obj, const WeaponSlotType slot, CommandSourceType commandSource );
98+
Bool canFireWeapon( const Object *obj, const WeaponSlotType slot, CommandSourceType commandSource );
9999
Bool canGarrison( const Object *obj, const Object *target, CommandSourceType commandSource );
100100
Bool canOverrideSpecialPowerDestination( const Object *obj, const Coord3D *loc, SpecialPowerType spType, CommandSourceType commandSource );
101101

GeneralsMD/Code/GameEngine/Include/Common/BattleHonors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//-----------------------------------------------------------------------------
6363
enum
6464
{
65-
BATTLE_HONOR_LADDER_CHAMP = 0x00000001,
65+
BATTLE_HONOR_LADDER_CHAMP = 0x00000001,
6666
BATTLE_HONOR_STREAK = 0x00000002,
6767
// BATTLE_HONOR_STREAK_5 = 0x00000004, // NOT TO BE REUSED
6868
// BATTLE_HONOR_STREAK_10 = 0x00000008, // NOT TO BE REUSED

GeneralsMD/Code/GameEngine/Include/Common/BitFlags.h

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -234,47 +234,47 @@ class BitFlags
234234
return val;
235235
}
236236

237-
static const char* const* getBitNames()
238-
{
239-
return s_bitNameList;
240-
}
241-
242-
static const char* getNameFromSingleBit(Int i)
243-
{
244-
return (i >= 0 && i < NUMBITS) ? s_bitNameList[i] : nullptr;
245-
}
246-
247-
static Int getSingleBitFromName(const char* token)
248-
{
249-
Int i = 0;
237+
static const char* const* getBitNames()
238+
{
239+
return s_bitNameList;
240+
}
241+
242+
static const char* getNameFromSingleBit(Int i)
243+
{
244+
return (i >= 0 && i < NUMBITS) ? s_bitNameList[i] : nullptr;
245+
}
246+
247+
static Int getSingleBitFromName(const char* token)
248+
{
249+
Int i = 0;
250250
for(const char* const* name = s_bitNameList; *name; ++name, ++i )
251251
{
252252
if( stricmp( *name, token ) == 0 )
253253
{
254-
return i;
254+
return i;
255255
}
256256
}
257257
return -1;
258-
}
258+
}
259259

260-
const char* getBitNameIfSet(Int i) const
261-
{
262-
return test(i) ? s_bitNameList[i] : nullptr;
263-
}
260+
const char* getBitNameIfSet(Int i) const
261+
{
262+
return test(i) ? s_bitNameList[i] : nullptr;
263+
}
264264

265-
Bool setBitByName(const char* token)
266-
{
267-
Int i = getSingleBitFromName(token);
265+
Bool setBitByName(const char* token)
266+
{
267+
Int i = getSingleBitFromName(token);
268268
if (i >= 0)
269269
{
270-
set(i);
270+
set(i);
271271
return true;
272272
}
273273
else
274274
{
275275
return false;
276276
}
277-
}
277+
}
278278

279279
void parse(INI* ini, AsciiString* str);
280280
void parseSingleBit(INI* ini, AsciiString* str);

GeneralsMD/Code/GameEngine/Include/Common/BitFlagsIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void BitFlags<NUMBITS>::xfer(Xfer* xfer)
184184
}
185185
else if( xfer->getXferMode() == XFER_LOAD )
186186
{
187-
// clear the kind of mask data
187+
// clear the kind of mask data
188188
clear();
189189

190190
// read how many entries follow

GeneralsMD/Code/GameEngine/Include/Common/BuildAssistant.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -131,36 +131,36 @@ class BuildAssistant : public SubsystemInterface
131131

132132
/// iterate the "footprint" area of a structure at the given "sample resolution"
133133
void iterateFootprint( const ThingTemplate *build,
134-
Real buildOrientation,
135-
const Coord3D *worldPos,
136-
Real sampleResolution,
137-
IterateFootprintFunc func,
138-
void *funcUserData );
134+
Real buildOrientation,
135+
const Coord3D *worldPos,
136+
Real sampleResolution,
137+
IterateFootprintFunc func,
138+
void *funcUserData );
139139

140140
/// create object from a build and put it in the world now
141141
virtual Object *buildObjectNow( Object *constructorObject, const ThingTemplate *what,
142142
const Coord3D *pos, Real angle, Player *owningPlayer );
143143

144144
/// using the "line placement" for objects (like walls etc) create that line of objects line
145145
virtual void buildObjectLineNow( Object *constructorObject, const ThingTemplate *what,
146-
const Coord3D *start, const Coord3D *end, Real angle,
147-
Player *owningPlayer );
146+
const Coord3D *start, const Coord3D *end, Real angle,
147+
Player *owningPlayer );
148148

149149
/// query if we can build at this location
150150
virtual LegalBuildCode isLocationLegalToBuild( const Coord3D *worldPos,
151-
const ThingTemplate *build,
152-
Real angle, // angle to construct 'build' at
153-
UnsignedInt options, // use LocationLegalToBuildOptions
154-
const Object *builderObject,
155-
Player *player);
151+
const ThingTemplate *build,
152+
Real angle, // angle to construct 'build' at
153+
UnsignedInt options, // use LocationLegalToBuildOptions
154+
const Object *builderObject,
155+
Player *player);
156156

157157
/// query if we can build at this location
158158
virtual LegalBuildCode isLocationClearOfObjects( const Coord3D *worldPos,
159-
const ThingTemplate *build,
160-
Real angle, // angle to construct 'build' a
161-
const Object *builderObject,
162-
UnsignedInt options,
163-
Player *thePlayer);
159+
const ThingTemplate *build,
160+
Real angle, // angle to construct 'build' a
161+
const Object *builderObject,
162+
UnsignedInt options,
163+
Player *thePlayer);
164164

165165
/// Adds bib highlighting for this location.
166166
virtual void addBibs( const Coord3D *worldPos,
@@ -202,7 +202,7 @@ class BuildAssistant : public SubsystemInterface
202202
/// will move objects that can move out of the way.
203203
/// will return false if there are objects that cannot be moved out of the way.
204204
Bool moveObjectsForConstruction( const ThingTemplate *whatToBuild,
205-
const Coord3D *pos, Real angle, Player *playerToBuild );
205+
const Coord3D *pos, Real angle, Player *playerToBuild );
206206

207207
Coord3D *m_buildPositions; ///< array used to create a line of build locations (think walls)
208208
Int m_buildPositionSize; ///< number of elements in the build position array

GeneralsMD/Code/GameEngine/Include/Common/CustomMatchPreferences.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ class CustomMatchPreferences : public UserPreferences
7575
Bool getDisallowNonAsianText();
7676
void setDisallowNonAsianText( Bool val );
7777

78-
Bool getSuperweaponRestricted() const;
79-
void setSuperweaponRestricted( Bool superweaponRestricted);
78+
Bool getSuperweaponRestricted() const;
79+
void setSuperweaponRestricted( Bool superweaponRestricted);
8080

81-
Money getStartingCash() const;
82-
void setStartingCash( const Money &startingCash );
81+
Money getStartingCash() const;
82+
void setStartingCash( const Money &startingCash );
8383

84-
Bool getFactionsLimited() const; // Prefers to only use the original 3 sides, not USA Air Force General, GLA Toxin General, et al
85-
void setFactionsLimited( Bool factionsLimited );
84+
Bool getFactionsLimited() const; // Prefers to only use the original 3 sides, not USA Air Force General, GLA Toxin General, et al
85+
void setFactionsLimited( Bool factionsLimited );
8686

87-
Bool getUseStats() const;
88-
void setUseStats( Bool useStats );
87+
Bool getUseStats() const;
88+
void setUseStats( Bool useStats );
8989
};

GeneralsMD/Code/GameEngine/Include/Common/GameEngine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class GameEngine : public SubsystemInterface
6262
virtual void update() override; ///< per frame update
6363

6464
virtual void execute(); /**< The "main loop" of the game engine.
65-
It will not return until the game exits. */
65+
It will not return until the game exits. */
6666

6767
static Bool isTimeFrozen(); ///< Returns true if a script has frozen time.
6868
static Bool isGameHalted(); ///< Returns true if the game is paused or the network is stalling.

GeneralsMD/Code/GameEngine/Include/Common/GameState.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ class GameState : public SubsystemInterface,
157157

158158
// save game methods
159159
SaveCode saveGame( AsciiString filename,
160-
UnicodeString desc,
161-
SaveFileType saveType,
162-
SnapshotType which = SNAPSHOT_SAVELOAD ); ///< save a game
160+
UnicodeString desc,
161+
SaveFileType saveType,
162+
SnapshotType which = SNAPSHOT_SAVELOAD ); ///< save a game
163163
SaveCode missionSave(); ///< do a in between mission save
164164
SaveCode loadGame( AvailableGameInfo gameInfo ); ///< load a save file
165165
SaveGameInfo *getSaveGameInfo() { return &m_gameInfo; }

GeneralsMD/Code/GameEngine/Include/Common/GameStateMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Xfer;
3939
// ------------------------------------------------------------------------------------------------
4040
// ------------------------------------------------------------------------------------------------
4141
class GameStateMap : public SubsystemInterface,
42-
public Snapshot
42+
public Snapshot
4343
{
4444

4545
public:

0 commit comments

Comments
 (0)