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