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.
10 #ifndef CORE__DEFAULTPOOLCOLLECTION_H
11 #define CORE__DEFAULTPOOLCOLLECTION_H
15 #include "component.h"
16 #include "poolcollection.h"
18 class TAGUA_EXPORT DefaultPoolCollection
20 , public IPoolCollection
{
21 typedef QMap
<const IColor
*, IPool
*> PoolMap
;
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