10 #include "../stdafx.h" 13 #include "../safeguards.h" 22 pools->erase(std::find(pools->begin(), pools->end(),
this));
23 if (pools->size() == 0)
delete pools;
33 if (pool->type & pt) pool->CleanPool();
static PoolVector * GetPools()
Function used to access the vector of all pools.
Base class for base of all pools.
static void Clean(PoolType)
Clean all pools of given type.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
virtual ~PoolBase()
Destructor removes this object from the pool vector and deletes the vector itself if this was the las...
PoolType
Various types of a pool.
std::vector< struct PoolBase * > PoolVector
Vector of pointers to PoolBase.