Initial porting to the new component API.
[tagua/yd.git] / src / entities / entity.cpp
blobb92b48aa8c053d89c3061dfc602cf2a54c9d01a4
1 /*
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.
9 */
11 #include "entity.h"
12 #include "game.h"
14 Entity::Entity(const GamePtr& game)
15 : m_enabled(true)
16 , m_highlight(true)
17 , m_game(game) { }
19 Entity::~Entity() { }
21 GamePtr Entity::game() const {
22 return m_game;
25 StatePtr Entity::position() const {
26 return m_game->position();