Use #pragma once instead of #ifndef

This commit is contained in:
smallmodel 2024-09-27 20:19:11 +02:00
parent 94f308c50f
commit bf184fb719
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
61 changed files with 118 additions and 311 deletions

View file

@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __CL_UIDMBOX_H__
#define __CL_UIDMBOX_H__
#pragma once
static constexpr unsigned int DMBOX_ITEM_FLAG_BOLD = 2u;
static constexpr unsigned int DMBOX_ITEM_FLAG_DEATH = 4u;
@ -77,5 +76,3 @@ public:
void setRealShow( bool b );
void Clear( void );
};
#endif /* __CL_UIDMBOX_H__ */

View file

@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __CL_UIGMBOX_H__
#define __CL_UIGMBOX_H__
#pragma once
static constexpr unsigned int GMBOX_ITEM_FLAG_BOLD = 1u;
@ -74,5 +73,3 @@ public:
void setRealShow( bool b );
void Clear( void );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// archive.h: OpenMoHAA Archiver
#ifndef __ARCHIVE_H__
#define __ARCHIVE_H__
#pragma once
#include "g_local.h"
#include "class.h"
@ -343,5 +342,3 @@ void con_map<key, value>::Archive(Archiver& arc)
arc.ArchiveInteger(&tempInt); \
(thing) = (type)tempInt; \
}
#endif // __ARCHIVE_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// armor.h: Standard armor that prevents a percentage of damage per hit.
#ifndef __ARMOR_H__
#define __ARMOR_H__
#pragma once
#include "weapon.h"
@ -40,5 +39,3 @@ class Armor : public Item
qboolean Pickupable( Entity *other ) override;
};
#endif /* armor.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// barrels.h : Barrels
#ifndef __BARRELOBJECT_H__
#define __BARRELOBJECT_H__
#pragma once
#include "entity.h"
@ -90,5 +89,3 @@ inline void BarrelObject::Archive
arc.ArchiveVector( &m_vLeakNorms[ i ] );
}
}
#endif // __BARRELOBJECT_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __BASEIMP_H__
#define __BASEIMP_H__
#pragma once
#ifdef __cplusplus
extern "C" {
@ -86,5 +85,3 @@ void CacheResource( const char *name );
#ifdef __cplusplus
}
#endif
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// beam.h: Beam
#ifndef __BEAM_H__
#define __BEAM_H__
#pragma once
#include "g_local.h"
#include "scriptslave.h"
@ -123,5 +122,3 @@ inline void FuncBeam::Archive
SetBeamShader( shader );
}
}
#endif // __BEAM_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// body.h: Dead bodies
#ifndef __BODY_H__
#define __BODY_H__
#pragma once
#include "animate.h"
@ -39,5 +38,3 @@ public:
CLASS_PROTOTYPE( Body );
Body();
};
#endif //__BODY_H__

View file

@ -13,8 +13,7 @@
*
*****************************************************************************/
#ifndef __BOTLIB_H__
#define __BOTLIB_H__
#pragma once
#define BOTLIB_API_VERSION 2
@ -503,4 +502,3 @@ name: default: module(s): description:
"max_levelitems" "256" be_ai_goal.c maximum number of level items
*/
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// bspline.h: Uniform non-rational bspline class.
//
#ifndef __BSPLINE_H__
#define __BSPLINE_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -580,5 +579,3 @@ inline void SplinePath::SetTriggerTarget
{
triggertarget = name;
}
#endif /* __BSPLINE_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// characterstate.h: Character state
#ifndef __CHARACTERSTATE_H__
#define __CHARACTERSTATE_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -359,5 +358,3 @@ StateMap *GetStatemap(
qboolean cache_only = false
);
void CacheStatemap(str filename, Condition<Class> *conditions);
#endif /* !__CHARACTERSTATE_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2008 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// crc32.h: CRC32 Encryption (used by the Archiver)
#ifndef __CRC32_H__
#define __CRC32_H8_
#pragma once
static unsigned int crc32_tab[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
@ -84,5 +83,3 @@ unsigned int crc32( unsigned int crc, const void *buf, size_t size )
return crc ^ ~0U;
}
#endif // __CRC32_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// decals.h: Decal entities
#ifndef __DECAL_H__
#define __DECAL_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -57,5 +56,3 @@ inline void Decal::Archive
setShader( shader );
}
}
#endif // __DECAL_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -24,8 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// The earthquake effect is visible to the user as the shaking of his screen.
//
#ifndef __EARTHQUAKE_H__
#define __EARTHQUAKE_H__
#pragma once
#include "g_local.h"
#include "trigger.h"
@ -75,5 +74,3 @@ inline void ViewJitter::Archive
arc.ArchiveBoolean( &m_bDoneDeath );
arc.ArchiveFloat( &m_fTimeRunning );
}
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// actor.cpp: Base class for character AI.
#ifndef __EFFECTENTITY_H__
#define __EFFECTENTITY_H__
#pragma once
#include "animate.h"
@ -34,5 +33,3 @@ public:
EffectEntity();
};
#endif // __EFFECTENTITY_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -26,8 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// explosions each time they are activated.
//
#ifndef __EXPLOSION_H__
#define __EXPLOSION_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -136,5 +135,3 @@ inline void ExplodeObject::Archive
arc.ArchiveInteger( &debrisamount );
debrismodels.Archive( arc );
}
#endif /* explosion.h */

View file

@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
// g_main.h -- Global header file for g_main.cpp
#ifndef __G_MAIN_H__
#define __G_MAIN_H__
#pragma once
#include "g_local.h"
#include "gamecvars.h"
@ -55,5 +54,3 @@ void G_AllocGameData(void);
void G_DeAllocGameData(void);
void G_ClientDrawBoundingBoxes(void);
void G_ClientDrawTags(void);
#endif /* g_main.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2008 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// g_phys.h: Header for g_phys.cpp
#ifndef __G_PHYS_H__
#define __G_PHYS_H__
#pragma once
#include "g_local.h"
#include "vector.h"
@ -79,5 +78,3 @@ void G_Impact( Entity *e1, trace_t *trace );
qboolean G_PushMove( Entity *pusher, Vector move, Vector amove );
void G_CheckWater( Entity *ent );
Entity *G_TestEntityPosition( Entity *ent, Vector vOrg );
#endif /* g_phys.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// gibs.h: Gibs - nuff said
#ifndef __GIBS_H__
#define __GIBS_H__
#pragma once
#include "g_local.h"
#include "mover.h"
@ -88,5 +87,3 @@ void CreateGibs
);
extern Event EV_ThrowGib;
#endif // gibs.h

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __GLB_LOCAL_H__
#define __GLB_LOCAL_H__
#pragma once
#if defined( GAME_DLL )
@ -79,5 +78,3 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#endif
#endif
#endif /* glb_local.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// gravpath.h: Gravity path - Used for underwater currents and wells.
#ifndef __GRAVPATH_H__
#define __GRAVPATH_H__
#pragma once
#include "g_local.h"
#include "class.h"
@ -202,5 +201,3 @@ inline void GravPathManager::Archive
}
extern GravPathManager gravPathManager;
#endif /* gravpath.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -22,8 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// grenadehint.h: Grenade hint for actors.
#ifndef __GRENADEHINT_H__
#define __GRENADEHINT_H__
#pragma once
#include "g_local.h"
#include "archive.h"
@ -53,5 +52,3 @@ inline void GrenadeHint::Archive
arc.ArchiveObjectPointer( ( Class ** )&m_pNext );
}
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// health.h: Health powerup
//
#ifndef __HEALTH_H__
#define __HEALTH_H__
#pragma once
#include "g_local.h"
#include "item.h"
@ -52,5 +51,3 @@ public:
private:
static SafePtr<Health> mHealthQueue[MAX_HEALTH_QUEUE];
};
#endif /* health.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// hud.h: New HUD handler for MoHAA
//
#ifndef __HUD_H__
#define __HUD_H__
#pragma once
#include "listener.h"
#include "container.h"
@ -208,5 +207,3 @@ public:
};
extern Container< Hud * > hudElements;
#endif /* __HUD_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// huddraw.cpp : This is a HudDraw Functions Code section with huddraw functions reversed for
// altering clients HUD
#ifndef __HUDDRAW_H__
#define __HUDDRAW_H__
#pragma once
#include "g_local.h"
@ -49,5 +48,3 @@ void iHudDrawAlpha( int cl_num, int info, float alpha );
void iHudDrawString( int cl_num, int info, const char *string );
void iHudDrawFont( int cl_num, int info, const char *fontName );
void iHudDrawTimer( int cl_num, int index, float duration, float fade_out_time );
#endif // __HUDDRAW_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// inventoryitem.h: Items that are visible in the player's inventory
#ifndef __INVITEM_H__
#define __INVITEM_H__
#pragma once
#include "weapon.h"
@ -52,5 +51,3 @@ class AntiSBJuice : public InventoryItem
void UseEvent( Event *ev );
};
#endif /* inventoryitem.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,11 +23,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// ipfilter.h: DESCRIPTION:
//
#ifndef __IPFILTER_H__
#define __IPFILTER_H__
#pragma once
#include "g_local.h"
qboolean SV_FilterPacket( const char *from );
#endif /* !__IPFILTER_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// light.h: Classes for creating and controlling lights.
//
#ifndef __LIGHT_H__
#define __LIGHT_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -36,5 +35,3 @@ class Light : public Entity
Light();
};
#endif /* light.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -26,8 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// class size down for objects that don't need such behavior.
//
#ifndef __MOVER_H__
#define __MOVER_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -64,5 +63,3 @@ inline void Mover::Archive
arc.ArchiveEventPointer( &endevent );
arc.ArchiveInteger( &moveflags );
}
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2023 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -21,8 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// playerbot.h: Multiplayer bot system.
#ifndef __PLAYERBOT_H__
#define __PLAYERBOT_H__
#pragma once
#include "player.h"
#include "navigate.h"
@ -178,5 +177,3 @@ public:
void GotKill(Event *ev);
void EventStuffText(Event *ev);
};
#endif /* playerbot.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// PlayerStart.h: Player start location entity declarations
//
#ifndef __PLAYERSTART_H__
#define __PLAYERSTART_H__
#pragma once
#include "g_local.h"
#include "simpleentity.h"
@ -89,5 +88,3 @@ class PlayerIntermission : public Camera
CLASS_PROTOTYPE( PlayerIntermission );
PlayerIntermission();
};
#endif /* PlayerStart.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// portal.h:
//
#ifndef __PORTAL_H__
#define __PORTAL_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -45,6 +44,3 @@ class PortalCamera : public Entity
PortalCamera();
void Roll( Event *ev );
};
#endif // __PORTAL_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// ScriptTimer.cpp: Scripted Timer & Fader
//
#ifndef __SCRIPTTIMER_H__
#define __SCRIPTTIMER_H__
#pragma once
#include "listener.h"
@ -81,5 +80,3 @@ public:
bool isEnabled();
void setType( timertype_e type );
};
#endif /* __SCRIPTTIMER_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// soundman.h: Sound Manager
//
#ifndef __SOUND_MANAGER_H__
#define __SOUND_MANAGER_H__
#pragma once
#include "g_local.h"
#include "entity.h"
@ -110,5 +109,3 @@ inline void SoundManager::Archive
}
extern SoundManager SoundMan;
#endif /* camera.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// specialfx.h: special effects
//
#ifndef __SPECIAL_FX_H__
#define __SPECIAL_FX_H__
#pragma once
#include "g_local.h"
#include "scriptslave.h"
@ -174,5 +173,3 @@ inline void SinkObject::Archive
arc.ArchiveBoolean( &active );
arc.ArchiveVector( &startpos );
}
#endif /* specialfx.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// stack.h: Generic Stack object.
//
#ifndef __STACK_H__
#define __STACK_H__
#pragma once
#include "g_local.h"
#include "class.h"
@ -142,5 +141,3 @@ inline Type Stack<Type>::Pop
return ret;
}
#endif /* stack.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -24,8 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// stored data.
//
#ifndef __UMAP_H__
#define __UMAP_H__
#pragma once
#include "str.h"
#include <stdlib.h>
@ -335,5 +334,3 @@ inline unsigned UMap<Type>::getNumEntries
{
return m_numentries;
}
#endif /* !__UMAP_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// viewthing.h: Actor code for the viewthing.
//
#ifndef __VIEWTHING_H__
#define __VIEWTHING_H__
#pragma once
#include "animate.h"
@ -113,5 +112,3 @@ inline void Viewthing::Archive
arc.ArchiveVector( &baseorigin );
arc.ArchiveRaw( origSurfaces, sizeof( origSurfaces ) );
}
#endif /* viewthing.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -25,8 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// class will be usable by any Sentient (players and monsters) as a weapon.
//
#ifndef __WEAPON_H__
#define __WEAPON_H__
#pragma once
#include "g_local.h"
#include "item.h"
@ -620,5 +619,3 @@ inline void Weapon::Archive(Archiver& arc)
}
typedef SafePtr<Weapon> WeaponPtr;
#endif /* weapon.h */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -23,8 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// weaputils.h:
//
#ifndef __WEAPUTILS_H__
#define __WEAPUTILS_H__
#pragma once
#include "g_local.h"
#include "animate.h"
@ -361,5 +360,3 @@ Entity* FindDefusableObject(const Vector& dir, Entity* owner, float maxdist);
void DefuseObject(const Vector& dir, Entity* owner, float maxdist);
qboolean CanPlaceLandmine(const Vector& origin, Entity* owner);
void PlaceLandmine(const Vector& origin, Entity* owner, const str& model, Weapon* weap);
#endif // __WEAPUTILS_H__

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UCOLOR_H__
#define __UCOLOR_H__
#pragma once
class UColor {
public:
@ -85,5 +84,3 @@ extern UColor ULightGreen;
extern UColor UBlue;
extern UColor UYellow;
extern UColor UHudColor;
#endif /* __UCOLOR_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UI_EXTERN_H__
#define __UI_EXTERN_H__
#pragma once
#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"
@ -83,6 +82,3 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../client/cl_invrender.h"
#include "../client/cl_uistd.h"
#include "../client/cl_uiloadsave.h"
#endif /* __UI_EXTERN_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UI_LOCAL_H__
#define __UI_LOCAL_H__
#pragma once
#include "../client/cl_ui.h"
@ -32,6 +31,3 @@ typedef struct uiGlobals_s {
} uiGlobals_t;
extern uiGlobals_t ui;
#endif /* __UI_LOCAL_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIBUTTON_H__
#define __UIBUTTON_H__
#pragma once
extern Event W_Button_Pressed;
@ -102,5 +101,3 @@ public:
void setCommand( const char *cmd );
void setButton( UIButton *button );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UICHECKBOX_H__
#define __UICHECKBOX_H__
#pragma once
class UICheckBox : public UIWidget {
str m_checked_command;
@ -60,6 +59,3 @@ extern Event EV_UICheckBox_SetCheckedCommand;
extern Event EV_UICheckBox_SetUncheckedCommand;
extern Event EV_UICheckBox_SetCheckedShader;
extern Event EV_UICheckBox_SetUncheckedShader;
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UI_CONSOLE_H__
#define __UI_CONSOLE_H__
#pragma once
typedef void ( *consoleHandler_t )( const char *text );
@ -172,5 +171,3 @@ public:
int GetMessageMode( void );
void SetMessageMode( int iMode );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UI_FLOATWND_H__
#define __UI_FLOATWND_H__
#pragma once
class UIChildSpaceWidget : public UIWidget {
public:
@ -78,5 +77,3 @@ public:
};
static UColor UWindowColor(0.15f, 0.195f, 0.278f, 1);
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UILAYOUT_H__
#define __UILAYOUT_H__
#pragma once
class Script;
@ -48,5 +47,3 @@ public:
void Load( const char *filename, bool bFullLoad );
int ForceLoad( void );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UILIST_H__
#define __UILIST_H__
#pragma once
class UIListItem {
public:
@ -71,5 +70,3 @@ public:
qboolean KeyEvent( int key, unsigned int time ) override;
};
#endif /* __UILIST_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UILISTCTRL_H__
#define __UILISTCTRL_H__
#pragma once
typedef enum { TYPE_STRING, TYPE_OWNERDRAW } griditemtype_t;
@ -105,5 +104,3 @@ public:
void setCompareFunction( int( *func ) ( const UIListCtrlItem *i1, const UIListCtrlItem *i2, int columnname ) );
void setHeaderFont( const char *name );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIMENU_H__
#define __UIMENU_H__
#pragma once
#include "../qcommon/listener.h"
#include "../qcommon/stack.h"
@ -108,6 +107,3 @@ extern Event EV_LockMenus;
extern Event EV_UnlockMenus;
extern Event EV_ShowMenu;
extern Event EV_HideMenu;
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015-2024 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UINOTEPAD_H__
#define __UINOTEPAD_H__
#pragma once
class UINotepad;
@ -103,6 +102,3 @@ public:
};
bool UI_LoadNotepadFile( const char *filename );
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIPOINT2D_H__
#define __UIPOINT2D_H__
#pragma once
class UIPoint2D {
public:
@ -64,5 +63,3 @@ bool UIPoint2D::operator!=( const UIPoint2D& pos ) const
{
return ( x != pos.x || y != pos.y );
}
#endif /* __UIPOINT2D_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2023 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIPOPUPMENU_H__
#define __UIPOPUPMENU_H__
#pragma once
typedef enum { UIP_NONE, UIP_EVENT, UIP_EVENT_STRING, UIP_SUBMENU, UIP_CMD, UIP_CVAR, UIP_SEPARATOR } uipopup_type;
typedef enum { UIP_WHERE_RIGHT, UIP_WHERE_DOWN } uipopup_where;
@ -133,6 +132,3 @@ public:
};
uipopup_type UI_PopupTypeStringToInt(str type);
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2023 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIPULLDOWNMENU_H__
#define __UIPULLDOWNMENU_H__
#pragma once
class uipull_describe {
public:
@ -102,6 +101,3 @@ public:
void Realign( void ) override;
void Draw( void ) override;
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIPULLDOWNMENUCONTAINER_H__
#define __UIPULLDOWNMENUCONTAINER_H__
#pragma once
class UIPulldownMenuContainer : public UIWidget {
protected:
@ -54,6 +53,3 @@ protected:
public:
void AddPopup( Event *ev );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UISIZE2D_H__
#define __UISIZE2D_H__
#pragma once
class UISize2D {
public:
@ -65,5 +64,3 @@ bool UISize2D::operator!=( const UISize2D& pos ) const
{
return ( width != pos.width || height != pos.height );
}
#endif /* __UISIZE2D_H__ */

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UISLIDER_H__
#define __UISLIDER_H__
#pragma once
typedef enum { SLIDER_FLOAT, SLIDER_INTEGER } slidertype_t;
@ -85,6 +84,3 @@ public:
void setRange( float min, float max );
void setStep( float value );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UISTATUS_H__
#define __UISTATUS_H__
#pragma once
typedef enum { M_NONE, M_DRAGGING } mouseState_t;
@ -79,6 +78,3 @@ public:
void ParentSized( Event *ev );
void SelfSized( Event *ev );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __UIVERTSCROLL_H__
#define __UIVERTSCROLL_H__
#pragma once
class unnamed_struct {
public:
@ -73,5 +72,3 @@ public:
void InitFrameAlignRight( UIWidget *parent, float fWidthPadding, float fHeightPadding );
};
#endif

View file

@ -1,6 +1,6 @@
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
Copyright (C) 2024 the OpenMoHAA team
This file is part of OpenMoHAA source code.
@ -20,8 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#ifndef __ULIST_H__
#define __ULIST_H__
#pragma once
template< typename type >
class UListItem {
@ -349,5 +348,3 @@ void UList< type >::setPosition
{
m_at = static_cast<UListItem<type>*>(pos);
}
#endif /* __ULIST_H__ */