Skip to content

Commit 27d409a

Browse files
committed
reformat
1 parent 59ef3a1 commit 27d409a

24 files changed

+190
-122
lines changed

Source/Entities/AtomGroup.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,11 @@ namespace RTE {
389389
/// <summary>
390390
/// Enumeration for how the AtomGroup's area is distributed. Linear means it acts a 2D line whereas Circle/Square acts as a pseudo-3d circle/square.
391391
/// </summary>
392-
enum class AreaDistributionType { Linear,
393-
Circle,
394-
Square };
392+
enum class AreaDistributionType {
393+
Linear,
394+
Circle,
395+
Square
396+
};
395397

396398
static const std::unordered_map<std::string, AreaDistributionType> c_AreaDistributionTypeMap; //!< A map of strings to AreaDistributionTypes to support string parsing for the AreaDistributionType enum.
397399

Source/Entities/Gib.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ namespace RTE {
2121
/// <summary>
2222
/// Different types of logic for the Gib to use when applying velocity to its GibParticles.
2323
/// </summary>
24-
enum SpreadMode { SpreadRandom,
25-
SpreadEven,
26-
SpreadSpiral };
24+
enum SpreadMode {
25+
SpreadRandom,
26+
SpreadEven,
27+
SpreadSpiral
28+
};
2729

2830
#pragma region Creation
2931
/// <summary>

Source/Entities/PieMenu.h

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -395,31 +395,39 @@ namespace RTE {
395395
/// <summary>
396396
/// Enumeration for enabled states when enabling/disabling the PieMenu.
397397
/// </summary>
398-
enum class EnabledState { Enabling,
399-
Enabled,
400-
Disabling,
401-
Disabled };
398+
enum class EnabledState {
399+
Enabling,
400+
Enabled,
401+
Disabling,
402+
Disabled
403+
};
402404

403405
/// <summary>
404406
/// Enumeration for the modes a PieMenu can have.
405407
/// </summary>
406-
enum class MenuMode { Normal,
407-
Wobble,
408-
Freeze };
408+
enum class MenuMode {
409+
Normal,
410+
Wobble,
411+
Freeze
412+
};
409413

410414
/// <summary>
411415
/// Enumeration for the different item separator modes available to the PieMenu.
412416
/// </summary>
413-
enum class IconSeparatorMode { Line,
414-
Circle,
415-
Square };
417+
enum class IconSeparatorMode {
418+
Line,
419+
Circle,
420+
Square
421+
};
416422

417423
/// <summary>
418424
/// Enumeration for helping keyboard PieMenu navigation. Specifies the ways the cursor should move from one PieQuadrant to another.
419425
/// </summary>
420-
enum class MoveToPieQuadrantMode { Start,
421-
Middle,
422-
End };
426+
enum class MoveToPieQuadrantMode {
427+
Start,
428+
Middle,
429+
End
430+
};
423431

424432
static constexpr int c_EnablingDelay = 50; //!< Time in ms for how long it takes to enable/disable.
425433
static constexpr int c_DefaultFullRadius = 58; //!< The radius the menu should have when fully enabled, in pixels.

Source/Entities/SLBackground.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,12 @@ namespace RTE {
210210
/// <summary>
211211
/// Enumeration for the different modes of SLBackground auto-scaling.
212212
/// </summary>
213-
enum LayerAutoScaleMode { AutoScaleOff,
214-
FitScreen,
215-
AlwaysUpscaled,
216-
LayerAutoScaleModeCount };
213+
enum LayerAutoScaleMode {
214+
AutoScaleOff,
215+
FitScreen,
216+
AlwaysUpscaled,
217+
LayerAutoScaleModeCount
218+
};
217219

218220
static Entity::ClassInfo m_sClass; //!< ClassInfo for this class.
219221

Source/Entities/SLTerrain.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ namespace RTE {
2424
/// <summary>
2525
/// Enumeration for the different type of layers in the SLTerrain.
2626
/// </summary>
27-
enum class LayerType { ForegroundLayer,
28-
BackgroundLayer,
29-
MaterialLayer };
27+
enum class LayerType {
28+
ForegroundLayer,
29+
BackgroundLayer,
30+
MaterialLayer
31+
};
3032

3133
#pragma region Creation
3234
/// <summary>

Source/Entities/SceneObject.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ namespace RTE {
4040
/// <summary>
4141
/// Enumeration for the different buyable modes of this SceneObject.
4242
/// </summary>
43-
enum class BuyableMode { NoRestrictions,
44-
BuyMenuOnly,
45-
ObjectPickerOnly,
46-
ScriptOnly };
43+
enum class BuyableMode {
44+
NoRestrictions,
45+
BuyMenuOnly,
46+
ObjectPickerOnly,
47+
ScriptOnly
48+
};
4749

4850
//////////////////////////////////////////////////////////////////////////////////////////
4951
// Nested class: SOPlacer

Source/GUI/GUIRadioButton.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void GUIRadioButton::Draw(GUIScreen* Screen) {
153153
if (m_Enabled) {
154154
m_Image->DrawTrans(Screen->GetBitmap(), m_X, YPos, &m_ImageRects[2]);
155155
} // else {
156-
// m_Image->DrawTrans(Screen->GetBitmap(), m_X, YPos, &m_ImageRects[3]);
156+
// m_Image->DrawTrans(Screen->GetBitmap(), m_X, YPos, &m_ImageRects[3]);
157157
//}
158158
}
159159

Source/GUI/GUITab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void GUITab::Draw(GUIScreen* Screen) {
152152
if (m_Enabled) {
153153
m_Image->DrawTrans(Screen->GetBitmap(), m_X, YPos, &m_ImageRects[2]);
154154
} // else
155-
// m_Image->DrawTrans(Screen->GetBitmap(), m_X, YPos, &m_ImageRects[3]);
155+
// m_Image->DrawTrans(Screen->GetBitmap(), m_X, YPos, &m_ImageRects[3]);
156156
//}
157157
}
158158

Source/Managers/ConsoleMan.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ namespace RTE {
158158
/// <summary>
159159
/// Enumeration for console states when enabling/disabling the console. NOTE: This can't be lower down because m_ConsoleState relies on this definition.
160160
/// </summary>
161-
enum ConsoleState { Enabling = 0,
162-
Enabled,
163-
Disabling,
164-
Disabled };
161+
enum ConsoleState {
162+
Enabling = 0,
163+
Enabled,
164+
Disabling,
165+
Disabled
166+
};
165167

166168
ConsoleState m_ConsoleState; //!< Current state of the console.
167169
bool m_ReadOnly; //!< Read-only mode where console text input is disabled and controller input should be preserved.

Source/Managers/FrameMan.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,12 @@ namespace RTE {
488488
/// <summary>
489489
/// Enumeration with different settings for the SaveBitmap() method.
490490
/// </summary>
491-
enum SaveBitmapMode { SingleBitmap,
492-
ScreenDump,
493-
WorldDump,
494-
ScenePreviewDump };
491+
enum SaveBitmapMode {
492+
SingleBitmap,
493+
ScreenDump,
494+
WorldDump,
495+
ScenePreviewDump
496+
};
495497

496498
static const std::array<std::function<void(int r, int g, int b, int a)>, DrawBlendMode::BlendModeCount> c_BlenderSetterFunctions; //!< Array of function references to Allegro blender setters for convenient access when creating new color tables.
497499

0 commit comments

Comments
 (0)