diff options
Diffstat (limited to 'src/game/ObjectDefines.h')
| -rw-r--r-- | src/game/ObjectDefines.h | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/ObjectDefines.h b/src/game/ObjectDefines.h index 53a0174ba2f..ee58e8a5f34 100644 --- a/src/game/ObjectDefines.h +++ b/src/game/ObjectDefines.h @@ -1,7 +1,7 @@  /* - * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> + * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>   * - * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> + * Copyright (C) 2008-2009 Trinity <http://www.trinitycore.org/>   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License as published by @@ -41,6 +41,7 @@ enum HighGuid      HIGHGUID_TRANSPORT      = 0xF120,                       // blizz F120 (for GAMEOBJECT_TYPE_TRANSPORT)      HIGHGUID_UNIT           = 0xF130,                       // blizz F130      HIGHGUID_PET            = 0xF140,                       // blizz F140 +    HIGHGUID_VEHICLE        = 0xF150,                       // blizz F550      HIGHGUID_DYNAMICOBJECT  = 0xF100,                       // blizz F100      HIGHGUID_CORPSE         = 0xF101,                       // blizz F100      HIGHGUID_MO_TRANSPORT   = 0x1FC0,                       // blizz 1FC0 (for GAMEOBJECT_TYPE_MO_TRANSPORT) @@ -50,6 +51,7 @@ enum HighGuid  #define IS_CREATURE_GUID(Guid)       ( GUID_HIPART(Guid) == HIGHGUID_UNIT )  #define IS_PET_GUID(Guid)            ( GUID_HIPART(Guid) == HIGHGUID_PET ) +#define IS_VEHICLE_GUID(Guid)        ( GUID_HIPART(Guid) == HIGHGUID_VEHICLE )  #define IS_CREATURE_OR_PET_GUID(Guid)( IS_CREATURE_GUID(Guid) || IS_PET_GUID(Guid) )  #define IS_PLAYER_GUID(Guid)         ( GUID_HIPART(Guid) == HIGHGUID_PLAYER && Guid!=0 )  #define IS_UNIT_GUID(Guid)           ( IS_CREATURE_OR_PET_GUID(Guid) || IS_PLAYER_GUID(Guid) ) @@ -87,6 +89,7 @@ inline bool IsGuidHaveEnPart(uint64 const& guid)          case HIGHGUID_TRANSPORT:          case HIGHGUID_UNIT:          case HIGHGUID_PET: +        case HIGHGUID_VEHICLE:          case HIGHGUID_MO_TRANSPORT:          default:              return true; @@ -106,6 +109,7 @@ inline char const* GetLogNameForGuid(uint64 guid)          case HIGHGUID_TRANSPORT:    return "transport";          case HIGHGUID_UNIT:         return "creature";          case HIGHGUID_PET:          return "pet"; +        case HIGHGUID_VEHICLE:      return "vehicle";          case HIGHGUID_DYNAMICOBJECT:return "dynobject";          case HIGHGUID_CORPSE:       return "corpse";          case HIGHGUID_MO_TRANSPORT: return "mo_transport";  | 
