mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more.
This commit is contained in:
parent
2c38c1a8ee
commit
5d294f0ad2
33 changed files with 81 additions and 82 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
@ -65,7 +65,7 @@ class MANGOS_DLL_DECL NGrid
|
||||||
public:
|
public:
|
||||||
|
|
||||||
typedef Grid<ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES, ThreadModel> GridType;
|
typedef Grid<ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES, ThreadModel> GridType;
|
||||||
NGrid(uint32 id, int32 x, int32 y, time_t expiry, bool unload = true) :
|
NGrid(uint32 id, int32 x, int32 y, time_t expiry, bool unload = true) :
|
||||||
i_gridId(id), i_cellstate(GRID_STATE_INVALID), i_x(x), i_y(y), i_GridObjectDataLoaded(false)
|
i_gridId(id), i_cellstate(GRID_STATE_INVALID), i_x(x), i_y(y), i_GridObjectDataLoaded(false)
|
||||||
{
|
{
|
||||||
i_GridInfo = GridInfo(expiry, unload);
|
i_GridInfo = GridInfo(expiry, unload);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -23,42 +23,41 @@ AM_CPPFLAGS = $(MANGOS_INCLUDES) -I$(srcdir)
|
||||||
|
|
||||||
## Build MaNGOS framework library as convenience library.
|
## Build MaNGOS framework library as convenience library.
|
||||||
# libMaNGOSScript shared library will later be reused by world server daemon.
|
# libMaNGOSScript shared library will later be reused by world server daemon.
|
||||||
noinst_LIBRARIES = libmangosframework.a
|
noinst_LIBRARIES = libmangosframework.a
|
||||||
libmangosframework_a_SOURCES = \
|
libmangosframework_a_SOURCES = \
|
||||||
Policies/ObjectLifeTime.cpp \
|
Policies/ObjectLifeTime.cpp \
|
||||||
Utilities/EventProcessor.cpp
|
Utilities/EventProcessor.cpp
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
# Source and header files for the Framework.
|
# Source and header files for the Framework.
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
Dynamic/FactoryHolder.h \
|
Dynamic/FactoryHolder.h \
|
||||||
Dynamic/ObjectRegistry.h \
|
Dynamic/ObjectRegistry.h \
|
||||||
GameSystem/Grid.h \
|
GameSystem/Grid.h \
|
||||||
GameSystem/GridLoader.h \
|
GameSystem/GridLoader.h \
|
||||||
GameSystem/GridRefManager.h \
|
GameSystem/GridRefManager.h \
|
||||||
GameSystem/GridReference.h \
|
GameSystem/GridReference.h \
|
||||||
GameSystem/NGrid.h \
|
GameSystem/NGrid.h \
|
||||||
GameSystem/TypeContainer.h \
|
GameSystem/TypeContainer.h \
|
||||||
GameSystem/TypeContainerFunctions.h \
|
GameSystem/TypeContainerFunctions.h \
|
||||||
GameSystem/TypeContainerFunctionsPtr.h \
|
GameSystem/TypeContainerFunctionsPtr.h \
|
||||||
GameSystem/TypeContainerVisitor.h \
|
GameSystem/TypeContainerVisitor.h \
|
||||||
Network/SocketDefines.h \
|
Network/SocketDefines.h \
|
||||||
Platform/CompilerDefs.h \
|
Platform/CompilerDefs.h \
|
||||||
Platform/Define.h \
|
Platform/Define.h \
|
||||||
Policies/CreationPolicy.h \
|
Policies/CreationPolicy.h \
|
||||||
Policies/ObjectLifeTime.h \
|
Policies/ObjectLifeTime.h \
|
||||||
Policies/Singleton.h \
|
Policies/Singleton.h \
|
||||||
Policies/SingletonImp.h \
|
Policies/SingletonImp.h \
|
||||||
Policies/ThreadingModel.h \
|
Policies/ThreadingModel.h \
|
||||||
Utilities/CountedReference/Reference.h \
|
Utilities/CountedReference/Reference.h \
|
||||||
Utilities/CountedReference/ReferenceHolder.h \
|
Utilities/CountedReference/ReferenceHolder.h \
|
||||||
Utilities/CountedReference/ReferenceImpl.h \
|
Utilities/CountedReference/ReferenceImpl.h \
|
||||||
Utilities/LinkedReference/RefManager.h \
|
Utilities/LinkedReference/RefManager.h \
|
||||||
Utilities/LinkedReference/Reference.h \
|
Utilities/LinkedReference/Reference.h \
|
||||||
Utilities/ByteConverter.h \
|
Utilities/ByteConverter.h \
|
||||||
Utilities/Callback.h \
|
Utilities/Callback.h \
|
||||||
Utilities/EventProcessor.h \
|
Utilities/EventProcessor.h \
|
||||||
Utilities/HashMap.h \
|
Utilities/HashMap.h \
|
||||||
Utilities/LinkedList.h \
|
Utilities/LinkedList.h \
|
||||||
Utilities/TypeList.h
|
Utilities/TypeList.h
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
@ -29,21 +29,21 @@ All rights reserved.
|
||||||
|
|
||||||
TERMS
|
TERMS
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted subject to the following conditions:
|
modification, are permitted subject to the following conditions:
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright
|
1. Redistributions of source code must retain the above copyright
|
||||||
notice, this list of conditions and the following disclaimer.
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
notice, this list of conditions and the following disclaimer in the
|
notice, this list of conditions and the following disclaimer in the
|
||||||
documentation and/or other materials provided with the distribution.
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
3. The copyright holder's name must not be used to endorse or promote
|
3. The copyright holder's name must not be used to endorse or promote
|
||||||
any products derived from this software without his specific prior
|
any products derived from this software without his specific prior
|
||||||
written permission.
|
written permission.
|
||||||
|
|
||||||
This software is provided 'as is' with no express or implied warranties
|
This software is provided 'as is' with no express or implied warranties
|
||||||
of correctness or fitness for purpose.
|
of correctness or fitness for purpose.
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
@ -79,11 +79,11 @@ of correctness or fitness for purpose.
|
||||||
|
|
||||||
/* 2. BYTE ORDER IN 32-BIT WORDS
|
/* 2. BYTE ORDER IN 32-BIT WORDS
|
||||||
|
|
||||||
To obtain the highest speed on processors with 32-bit words, this code
|
To obtain the highest speed on processors with 32-bit words, this code
|
||||||
needs to determine the order in which bytes are packed into such words.
|
needs to determine the order in which bytes are packed into such words.
|
||||||
The following block of code is an attempt to capture the most obvious
|
The following block of code is an attempt to capture the most obvious
|
||||||
ways in which various environemnts specify their endian definitions.
|
ways in which various environemnts specify their endian definitions.
|
||||||
It may well fail, in which case the definitions will need to be set by
|
It may well fail, in which case the definitions will need to be set by
|
||||||
editing at the points marked **** EDIT HERE IF NECESSARY **** below.
|
editing at the points marked **** EDIT HERE IF NECESSARY **** below.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ editing at the points marked **** EDIT HERE IF NECESSARY **** below.
|
||||||
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# elif defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
|
# elif defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
|
||||||
# define MANGOS_ENDIAN MANGOS_LITTLEENDIAN
|
# define MANGOS_ENDIAN MANGOS_LITTLEENDIAN
|
||||||
# elif !defined(LITTLE_ENDIAN) && defined(BIG_ENDIAN)
|
# elif !defined(LITTLE_ENDIAN) && defined(BIG_ENDIAN)
|
||||||
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
||||||
|
|
@ -114,7 +114,7 @@ editing at the points marked **** EDIT HERE IF NECESSARY **** below.
|
||||||
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
|
# elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
|
||||||
# define MANGOS_ENDIAN MANGOS_LITTLE_ENDIAN
|
# define MANGOS_ENDIAN MANGOS_LITTLE_ENDIAN
|
||||||
# elif !defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
|
# elif !defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
|
||||||
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
# define MANGOS_ENDIAN MANGOS_BIGENDIAN
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
* Copyright (C) 2005-2008 MaNGOS <http://getmangos.com/>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue