new 33c0e9569b8825f53d773343cc90e4377118edca
[tagua/yd.git] / src / core / defaultpoolcollection.h
blob55c454741a8017b51ab239caa2ea8cda03a91fbe
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 TAGUA_EXPORT DefaultPoolCollection
19 : public Component
20 , public IPoolCollection {
21 typedef QMap<const IColor*, IPool*> PoolMap;
22 PoolMap m_pools;
23 public:
24 DefaultPoolCollection();
25 virtual ~DefaultPoolCollection();
27 virtual IPoolCollection* clone() const;
28 virtual bool equals(const IPoolCollection* other) const;
29 virtual IPool* pool(const IColor* player);
30 virtual const IPool* pool(const IColor* player) const;
32 virtual void addPool(const IColor* color, IPool* pool);
35 #endif // CORE__DEFAULTPOOLCOLLECTION_H