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.
14 #include <core/state_fwd.h>
25 explicit Entity(const GamePtr
& game
);
27 * Detach from dependent resource disposing it.
31 bool highlight() const { return m_highlight
; }
32 void setHighlight(bool highlight
) { m_highlight
= highlight
; }
34 void setEnabled(bool enabled
) { m_enabled
= enabled
; }
36 virtual bool canDetach() const = 0;
38 * Detach from dependent resource without disposing it.
40 virtual void detach() { }
43 StatePtr
position() const;