Initial implementation of the new abstraction architecture.
[tagua.git] / src / element.h__
blobddba100b9fc39965d9dd79cc56de1a340644bfb0
1 /*
2   Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3             (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
4             
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU General Public License as published by
7   the Free Software Foundation; either version 2 of the License, or
8   (at your option) any later version.
9 */
11 #ifndef ELEMENT_H
12 #define ELEMENT_H
14 #include "kboard.h"
16 class PieceSprite;
18 struct Element {
19   typedef boost::shared_ptr<PieceSprite> SpritePtr;
20 private:
21   AbstractPiece::Ptr m_piece;
22   SpritePtr m_sprite;
23 public:
24   Element();
25   Element(AbstractPiece::Ptr piece, SpritePtr sprite);
26   
27   operator bool() const;
28   
29   AbstractPiece::Ptr piece() const;
30   SpritePtr sprite() const;
34 #endif // ELEMENT_H