aboutsummaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-26 03:20:19 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:53 +0200
commit945d01fd9efe93e892a6a2be2467373e3c684300 (patch)
treeed5c1daac607992f4784b6085eeed3b28bfa73a4 /src/player.h
parentd99d27dcbedee30e82f66ee76bf50b986ebfdc00 (diff)
downloadminetest-945d01fd9efe93e892a6a2be2467373e3c684300.tar.gz
minetest-945d01fd9efe93e892a6a2be2467373e3c684300.tar.bz2
minetest-945d01fd9efe93e892a6a2be2467373e3c684300.zip
on_newplayer and on_respawnplayer callbacks
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index 56bb5083c..e133c7afb 100644
--- a/src/player.h
+++ b/src/player.h
@@ -208,6 +208,12 @@ public:
u8 getType() const
{return ACTIVEOBJECT_TYPE_PLAYER;}
+
+ virtual void setPos(v3f pos)
+ { setPosition(pos); }
+ virtual void moveTo(v3f pos, bool continuous)
+ { setPosition(pos); }
+
virtual std::string getDescription(){return getName();}
// Returns a reference
virtual InventoryItem* getWieldedItem();