Merge GameBasedEntity into Entity.
[tagua/yd.git] / src / entities / gamebasedentity.h
blob9fa6881f607c34c5bb930c77312483bad3acd24e
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
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 GAMEBASEDENTITY_H
12 #define GAMEBASEDENTITY_H
14 #include "kboard.h"
16 class Game;
18 class GameBasedEntity {
19 protected:
20 boost::shared_ptr<Game> m_game;
21 public:
22 GameBasedEntity(const boost::shared_ptr<Game>& game);
24 boost::shared_ptr<Game> game() const { return m_game; }
25 AbstractPosition::Ptr position() const;
28 #endif // GAMEBASEDENTITY_H