aboutsummaryrefslogtreecommitdiff
path: root/src/content_sao.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/content_sao.h')
-rw-r--r--src/content_sao.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h
index 428998799..19b0e74ba 100644
--- a/src/content_sao.h
+++ b/src/content_sao.h
@@ -240,5 +240,30 @@ private:
float m_last_sent_move_precision;
};
+class ServerRemotePlayer;
+
+class PlayerSAO : public ServerActiveObject
+{
+public:
+ PlayerSAO(ServerEnvironment *env, v3f pos,
+ ServerRemotePlayer *player);
+ ~PlayerSAO();
+ u8 getType() const
+ {return ACTIVEOBJECT_TYPE_PLAYER;}
+ void step(float dtime, bool send_recommended);
+ std::string getClientInitializationData();
+ std::string getStaticData();
+ bool isStaticAllowed() const
+ { return false; }
+ void punch(ServerActiveObject *puncher);
+ /* PlayerSAO-specific */
+ void setPlayer(ServerRemotePlayer *player);
+ ServerRemotePlayer* getPlayer();
+ void positionUpdated();
+private:
+ ServerRemotePlayer *m_player;
+ bool m_position_updated;
+};
+
#endif