Update l10n files, translate into french a bit more.
[tagua/yd.git] / src / entities / userentity.cpp
blob849227bc96fca3ebf97826c81916285b99091a85
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 "userentity.h"
13 UserEntity::UserEntity(const GamePtr& game)
14 : Entity(game)
15 , m_editing_tools(false) { }
17 void UserEntity::enableEditingTools(bool value) {
18 m_editing_tools = value;
21 NormalUserMove UserEntity::createMove(const Point& from, const Point& to) const {
22 return NormalUserMove(from, to);
25 DropUserMove UserEntity::createDrop(int pool, int index, const Point& to) const {
26 return DropUserMove(pool, index, to);
29 void UserEntity::handleRightClick(const Point&) const { }
31 bool UserEntity::canDetach() const { return true; }