/*
Minetest-c55
-Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2010-2011 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/*
-(c) 2010 Perttu Ahola <celeron55@gmail.com>
-*/
-
#ifndef PLAYER_HEADER
#define PLAYER_HEADER
#include "common_irrlicht.h"
#include "inventory.h"
+#include "collision.h"
#define PLAYERNAME_SIZE 20
Inventory inventory;
+ bool craftresult_is_preview;
+
+ u16 hp;
+
u16 peer_id;
protected:
v3f m_position;
};
+/*
+ Player on the server
+*/
+
class ServerRemotePlayer : public Player
{
public:
virtual void move(f32 dtime, Map &map, f32 pos_max_d)
{
}
-
+
private:
};
#ifndef SERVER
+/*
+ All the other players on the client are these
+*/
+
class RemotePlayer : public Player, public scene::ISceneNode
{
public:
return true;
}
+ void move(f32 dtime, Map &map, f32 pos_max_d,
+ core::list<CollisionInfo> *collision_info);
void move(f32 dtime, Map &map, f32 pos_max_d);
void applyControl(float dtime);