File diff r23537:f6a6d4ce4bd5 → r23538:8df50944b27a
src/core/pool_type.hpp
Show inline comments
 
@@ -17,25 +17,25 @@
 

	
 
/** Various types of a pool. */
 
enum PoolType {
 
	PT_NONE    = 0x00, ///< No pool is selected.
 
	PT_NORMAL  = 0x01, ///< Normal pool containing game objects.
 
	PT_NCLIENT = 0x02, ///< Network client pools.
 
	PT_NADMIN  = 0x04, ///< Network admin pool.
 
	PT_DATA    = 0x08, ///< NewGRF or other data, that is not reset together with normal pools.
 
	PT_ALL     = 0x0F, ///< All pool types.
 
};
 
DECLARE_ENUM_AS_BIT_SET(PoolType)
 

	
 
typedef SmallVector<struct PoolBase *, 4> PoolVector; ///< Vector of pointers to PoolBase
 
typedef std::vector<struct PoolBase *> PoolVector; ///< Vector of pointers to PoolBase
 

	
 
/** Base class for base of all pools. */
 
struct PoolBase {
 
	const PoolType type; ///< Type of this pool.
 

	
 
	/**
 
	 * Function used to access the vector of all pools.
 
	 * @return pointer to vector of all pools
 
	 */
 
	static PoolVector *GetPools()
 
	{
 
		static PoolVector *pools = new PoolVector();