Added real animations to the Shogi animator.
[tagua.git] / src / element.cpp__
bloba4090eed04224844a646b5afa975510dcb6982bb
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 #include "element.h"
13 Element::Element() { }
15 Element::Element(AbstractPiece::Ptr piece, SpritePtr sprite)
16 : m_piece(piece) //NOTE: clone?!?!??!?!?!
17 , m_sprite(sprite) { }
19 Element::operator bool() const {
20   return m_piece;
23 AbstractPiece::Ptr Element::piece() const { return m_piece; }
24 Element::SpritePtr Element::sprite() const { return m_sprite; }