2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
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.
24 explicit Entity(const GamePtr
& game
);
26 * Detach from dependent resource disposing it.
30 bool highlight() const { return m_highlight
; }
31 void setHighlight(bool highlight
) { m_highlight
= highlight
; }
33 void setEnabled(bool enabled
) { m_enabled
= enabled
; }
35 virtual bool canDetach() const = 0;
37 * Detach from dependent resource without disposing it.
39 virtual void detach() { }
42 PositionPtr
position() const;