First steps at creating a taguacore library.
[tagua/yd.git] / src / controllers / entitytoken.h
blob612567ce851a5bb70c2c27fa4e3e82db3ec90709
1 /*
2 Copyright (c) 2006-2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006-2007 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 ENTITYTOKEN_H
12 #define ENTITYTOKEN_H
14 #include <set>
15 #include <boost/shared_ptr.hpp>
16 #include <boost/weak_ptr.hpp>
18 class Entity;
20 class EntityToken {
21 boost::weak_ptr<Entity> m_entity;
22 public:
23 EntityToken(const boost::shared_ptr<Entity>& entity);
24 EntityToken();
26 boost::shared_ptr<Entity> entity() const;
27 bool valid() const;
30 #endif // ENTITYTOKEN_H