summaryrefslogtreecommitdiff
path: root/src/serverobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serverobject.h')
-rw-r--r--src/serverobject.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/serverobject.h b/src/serverobject.h
index 8d6bfd6e8..fce72ac64 100644
--- a/src/serverobject.h
+++ b/src/serverobject.h
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef SERVEROBJECT_HEADER
#define SERVEROBJECT_HEADER
-#include "common_irrlicht.h"
+#include "irrlichttypes.h"
#include "activeobject.h"
#include "utility.h"
@@ -64,14 +64,17 @@ public:
/*
Some simple getters/setters
*/
- v3f getBasePosition()
- {return m_base_position;}
- void setBasePosition(v3f pos)
- {m_base_position = pos;}
- ServerEnvironment* getEnv()
- {return m_env;}
+ v3f getBasePosition(){ return m_base_position; }
+ void setBasePosition(v3f pos){ m_base_position = pos; }
+ ServerEnvironment* getEnv(){ return m_env; }
/*
+ Some more dynamic interface
+ */
+ virtual void setPos(v3f pos){ setBasePosition(pos); }
+ virtual void moveTo(v3f pos){ setBasePosition(pos); }
+
+ /*
Step object in time.
Messages added to messages are sent to client over network.