Skip to content
Permalink
Browse files

Clean up CVehicleManager.h

  • Loading branch information...
botder committed Oct 23, 2019
1 parent d378336 commit 5d2a08ee4fad414c14dc5234dfd8a4a675aff5f7
Showing with 6 additions and 6 deletions.
  1. +6 −6 Server/mods/deathmatch/logic/CVehicleManager.h
@@ -16,7 +16,6 @@ class CVehicleManager;
#include "CVehicle.h"
#include "CVehicleColorManager.h"
#include <list>
#include "lua/CLuaMain.h"

// Undefined number of passengers (to disable custom passenger seats overriding in CVehicle)
#define VEHICLE_PASSENGERS_UNDEFINED 255
@@ -49,24 +48,25 @@ class CVehicleManager
static bool HasSmokeTrail(unsigned int uiVehicleModel);
static bool IsTrailer(unsigned int uiVehicleModel);
static bool HasDamageModel(unsigned short usModel);
static bool HasDamageModel(enum eVehicleType Type);
static bool HasDamageModel(eVehicleType Type);
static bool HasDoors(unsigned short usModel);
static void GetRandomVariation(unsigned short usModel, unsigned char& ucVariant, unsigned char& ucVariant2);

CVehicleColorManager* GetColorManager() { return &m_ColorManager; };
CVehicleColorManager* GetColorManager() { return &m_ColorManager; }
CVehicleColor GetRandomColor(unsigned short usModel);

void GetVehiclesOfType(unsigned int uiModel, lua_State* luaVM);

Container::size_type GetVehicleCount() { return m_List.size(); }

Container& GetVehicles() noexcept { return m_List; }
Container const& GetVehicles() const noexcept { return m_List; }
const Container& GetVehicles() const noexcept { return m_List; }

Container& GetRespawnEnabledVehicles() { return m_RespawnEnabledVehicles; };
Container& GetRespawnEnabledVehicles() noexcept { return m_RespawnEnabledVehicles; }
const Container& GetRespawnEnabledVehicles() const noexcept { return m_RespawnEnabledVehicles; }

private:
void AddToList(CVehicle* pVehicle) { m_List.push_back(pVehicle); };
void AddToList(CVehicle* pVehicle) { m_List.push_back(pVehicle); }
void RemoveFromList(CVehicle* pVehicle);

CVehicleColorManager m_ColorManager;

0 comments on commit 5d2a08e

Please sign in to comment.
You can’t perform that action at this time.