Skip to content

Commit

Permalink
Convert Op4-specific headers to use pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Nov 19, 2021
1 parent fdd344f commit 8aa9c01
Show file tree
Hide file tree
Showing 33 changed files with 66 additions and 132 deletions.
6 changes: 2 additions & 4 deletions dlls/COFAllyMonster.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef COFALLYMONSTER_H
#define COFALLYMONSTER_H

#pragma once

/**
* @brief Base class for Opposing force allies
Expand Down Expand Up @@ -95,5 +95,3 @@ class COFAllyMonster : public CBaseMonster
EHANDLE m_hTalkTarget; // who to look at while talking
CUSTOM_SCHEDULES;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemAcceleratorCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMACCELERATORCTF_H
#define CITEMACCELERATORCTF_H

#pragma once

#include "CItemCTF.h"

Expand All @@ -30,5 +30,3 @@ class CItemAcceleratorCTF : public CItemCTF

bool MyTouch( CBasePlayer* pPlayer ) override;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemBackpackCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMBACKPACKCTF_H
#define CITEMBACKPACKCTF_H

#pragma once

#include "CItemCTF.h"

Expand All @@ -30,5 +30,3 @@ class CItemBackpackCTF : public CItemCTF

int Classify() override;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMCTF_H
#define CITEMCTF_H

#pragma once

#include "CTFDefs.h"

Expand Down Expand Up @@ -58,5 +58,3 @@ class CItemCTF : public CBaseAnimating
CTFItem::CTFItem m_iItemFlag;
const char* m_pszItemName;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemLongJumpCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMLONGJUMPCTF_H
#define CITEMLONGJUMPCTF_H

#pragma once

#include "CItemCTF.h"

Expand All @@ -30,5 +30,3 @@ class CItemLongJumpCTF : public CItemCTF

int Classify() override;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemPortableHEVCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMPORTABLEHEVCTF_H
#define CITEMPORTABLEHEVCTF_H

#pragma once

#include "CItemCTF.h"

Expand All @@ -30,5 +30,3 @@ class CItemPortableHEVCTF : public CItemCTF

int Classify() override;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemRegenerationCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMREGENERATIONCTF_H
#define CITEMREGENERATIONCTF_H

#pragma once

#include "CItemCTF.h"

Expand All @@ -30,5 +30,3 @@ class CItemRegenerationCTF : public CItemCTF

int Classify() override;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CItemSpawnCTF.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CITEMSPAWNCTF_H
#define CITEMSPAWNCTF_H

#pragma once

#include "CTFDefs.h"

Expand All @@ -24,5 +24,3 @@ class CItemSpawnCTF : public CPointEntity

CTFTeam team_no;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CTFDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CTFDEFS_H
#define CTFDEFS_H

#pragma once

/**
* @file CTF gamemode definitions
Expand Down Expand Up @@ -45,5 +45,3 @@ enum CTFItem : unsigned int
ItemsMask = LongJump | PortableHEV | Backpack | Acceleration | Unknown | Regeneration
};
}

#endif //CTFDEFS_H
6 changes: 2 additions & 4 deletions dlls/ctf/CTFGoal.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CTFGOAL_H
#define CTFGOAL_H

#pragma once

class CTFGoal : public CBaseAnimating
{
Expand All @@ -35,5 +35,3 @@ class CTFGoal : public CBaseAnimating
Vector m_GoalMin;
Vector m_GoalMax;
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CTFGoalBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CTFGOALBASE_H
#define CTFGOALBASE_H

#pragma once

#include "CTFGoal.h"

Expand All @@ -28,5 +28,3 @@ class CTFGoalBase : public CTFGoal

void TurnOnLight(CBasePlayer* pPlayer);
};

#endif
6 changes: 2 additions & 4 deletions dlls/ctf/CTFGoalFlag.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CTFGOALFLAG_H
#define CTFGOALFLAG_H

#pragma once

#include "CTFGoal.h"

Expand Down Expand Up @@ -65,5 +65,3 @@ class CTFGoalFlag : public CTFGoal
int m_nReturnPlayer;
float m_flReturnTime;
};

#endif
7 changes: 2 additions & 5 deletions dlls/ctf/CTFSpawn.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CTFSPAWN_H
#define CTFSPAWN_H

#pragma once

#include "CTFDefs.h"

Expand All @@ -31,6 +31,3 @@ class CTFSpawn : public CBaseEntity
CTFTeam team_no;
bool m_fState;
};


#endif
6 changes: 2 additions & 4 deletions dlls/ctf/ctfplay_gamerules.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CTFPLAY_GAMERULES_H
#define CTFPLAY_GAMERULES_H

#pragma once

#include "CTFDefs.h"

Expand Down Expand Up @@ -140,5 +140,3 @@ void ScatterPlayerCTFPowerups( CBasePlayer* pPlayer );
void DropPlayerCTFPowerup( CBasePlayer* pPlayer );
void FlushCTFPowerupTimes();
void InitItemsForPlayer(CBasePlayer* pPlayer);

#endif
6 changes: 2 additions & 4 deletions dlls/rope/CElectrifiedWire.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef ROPE_CELECTRIFIEDWIRE_H
#define ROPE_CELECTRIFIEDWIRE_H

#pragma once

#include "CRope.h"

Expand Down Expand Up @@ -82,5 +82,3 @@ class CElectrifiedWire : public CRope

float m_flLastSparkTime;
};

#endif
6 changes: 2 additions & 4 deletions dlls/rope/CRope.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef GAME_SERVER_ENTITIES_ROPE_CROPE_H
#define GAME_SERVER_ENTITIES_ROPE_CROPE_H

#pragma once

class CRopeSegment;
class CRopeSample;
Expand Down Expand Up @@ -323,5 +323,3 @@ class CRope : public CBaseDelay

BOOL m_bMakeSound;
};

#endif
6 changes: 2 additions & 4 deletions dlls/rope/CRopeSample.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef ROPE_CROPESAMPLE_H
#define ROPE_CROPESAMPLE_H

#pragma once

class CRope;

Expand Down Expand Up @@ -64,5 +64,3 @@ class CRopeSample : public CBaseEntity
RopeSampleData m_Data;
CRope* m_pMasterRope;
};

#endif
6 changes: 2 additions & 4 deletions dlls/rope/CRopeSegment.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef ROPE_CROPESEGMENT_H
#define ROPE_CROPESEGMENT_H

#pragma once

class CRopeSample;

Expand Down Expand Up @@ -87,5 +87,3 @@ class CRopeSegment : public CBaseAnimating
BOOL m_bCauseDamage;
BOOL m_bCanBeGrabbed;
};

#endif
6 changes: 2 additions & 4 deletions dlls/weapons/CDisplacer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef WEAPONS_CDISPLACER_H
#define WEAPONS_CDISPLACER_H

#pragma once

enum DisplacerAnim
{
Expand Down Expand Up @@ -95,5 +95,3 @@ class CDisplacer : public CBasePlayerWeapon

unsigned short m_usFireDisplacer;
};

#endif
6 changes: 2 additions & 4 deletions dlls/weapons/CDisplacerBall.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef WEAPONS_CDISPLACERBALL_H
#define WEAPONS_CDISPLACERBALL_H

#pragma once

class CDisplacerBall : public CBaseEntity
{
Expand Down Expand Up @@ -60,5 +60,3 @@ class CDisplacerBall : public CBaseEntity

EHANDLE m_hDisplacedTarget;
};

#endif
6 changes: 2 additions & 4 deletions dlls/weapons/CEagle.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef WEAPONS_CEAGLE_H
#define WEAPONS_CEAGLE_H

#pragma once

class CEagleLaser;

Expand Down Expand Up @@ -92,5 +92,3 @@ class CEagle : public CBasePlayerWeapon
BOOL m_bLaserActive;
CEagleLaser* m_pLaser;
};

#endif
5 changes: 2 additions & 3 deletions dlls/weapons/CEagleLaser.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef WEAPONS_CEAGLELASER_H
#define WEAPONS_CEAGLELASER_H

#pragma once

/**
* @brief Identical to CLaserSpot, different class to avoid RPG laser confusion logic. - Solokiller
Expand All @@ -25,4 +25,3 @@ class CEagleLaser : public CLaserSpot

static CEagleLaser* CreateSpot();
};
#endif
6 changes: 2 additions & 4 deletions dlls/weapons/CGrapple.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* use or distribution of this code by or to any unlicensed person is illegal.
*
****/
#ifndef WEAPONS_CGRAPPLE_H
#define WEAPONS_CGRAPPLE_H

#pragma once

class CGrappleTip;

Expand Down Expand Up @@ -104,5 +104,3 @@ class CGrapple : public CBasePlayerWeapon

bool m_bMomentaryStuck;
};

#endif
Loading

0 comments on commit 8aa9c01

Please sign in to comment.