DefaultPool is now an implementation, and not a subinterface.
[tagua/yd.git] / src / core / defaultpoolcollection.h
blobecdabdac78477c3f904ea001130644c23ab29192
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #ifndef CORE__DEFAULTPOOLCOLLECTION_H
11 #define CORE__DEFAULTPOOLCOLLECTION_H
13 #include <QMap>
15 #include "component.h"
16 #include "poolcollection.h"
18 class DefaultPoolCollection : public Component, public IPoolCollection {
19 typedef QMap<const IColor*, IPool*> PoolMap;
20 PoolMap m_pools;
21 public:
22 DefaultPoolCollection();
23 virtual ~DefaultPoolCollection();
25 virtual IPoolCollection* clone() const;
26 virtual bool equals(const IPoolCollection* other) const;
27 virtual IPool* pool(const IColor* player);
30 #endif // CORE__DEFAULTPOOLCOLLECTION_H