3 Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef LOCALPLAYER_HEADER
21 #define LOCALPLAYER_HEADER
72 class LocalPlayer : public Player
75 LocalPlayer(IGameDef *gamedef);
76 virtual ~LocalPlayer();
83 void move(f32 dtime, Map &map, f32 pos_max_d,
84 core::list<CollisionInfo> *collision_info);
85 void move(f32 dtime, Map &map, f32 pos_max_d);
87 void applyControl(float dtime);
89 v3s16 getStandingNodePos();
91 PlayerControl control;
94 // This is used for determining the sneaking range
96 // Whether the player is allowed to sneak
97 bool m_sneak_node_exists;