aboutsummaryrefslogtreecommitdiff
path: root/assets/manual_img/Bildschirmfoto_2016-09-17_10-04-12.png
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-01-07 20:54:01 +0100
committerorwell96 <orwell@bleipb.de>2018-01-07 20:54:01 +0100
commit23da60848a1903af448bbd0312bce4e01b7f2197 (patch)
tree6d5930e1f4f103aa8d76e260dd9bef32656eee33 /assets/manual_img/Bildschirmfoto_2016-09-17_10-04-12.png
parentae88f29481c83532f79dfa55d6ec6eb27e091bb6 (diff)
parentaddd7d0b48e3df1cea496c93160711d366504e8c (diff)
downloadadvtrains-23da60848a1903af448bbd0312bce4e01b7f2197.tar.gz
advtrains-23da60848a1903af448bbd0312bce4e01b7f2197.tar.bz2
advtrains-23da60848a1903af448bbd0312bce4e01b7f2197.zip
Merge branch 'master' of https://github.com/orwell96/advtrains
Diffstat (limited to 'assets/manual_img/Bildschirmfoto_2016-09-17_10-04-12.png')
0 files changed, 0 insertions, 0 deletions
pan class="hl ppc">#include "activeobject.h" #include <map> /* Some planning ------------- * Client receives a network packet with information of added objects in it * Client supplies the information to its ClientEnvironment * The environment adds the specified objects to itself */ class ClientEnvironment; class ITextureSource; class IGameDef; class LocalPlayer; struct ItemStack; class WieldMeshSceneNode; class ClientActiveObject : public ActiveObject { public: ClientActiveObject(u16 id, IGameDef *gamedef, ClientEnvironment *env); virtual ~ClientActiveObject(); virtual void addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc, IrrlichtDevice *irr){} virtual void removeFromScene(bool permanent){} // 0 <= light_at_pos <= LIGHT_SUN virtual void updateLight(u8 light_at_pos){} virtual void updateLightNoCheck(u8 light_at_pos){} virtual v3s16 getLightPosition(){return v3s16(0,0,0);} virtual core::aabbox3d<f32>* getSelectionBox(){return NULL;} virtual bool getCollisionBox(aabb3f *toset){return false;} virtual bool collideWithObjects(){return false;} virtual v3f getPosition(){return v3f(0,0,0);} virtual scene::ISceneNode *getSceneNode(){return NULL;} virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;} virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;} virtual WieldMeshSceneNode *getWieldMeshSceneNode(){return NULL;} virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;} virtual bool isPlayer() const {return false;} virtual bool isLocalPlayer() const {return false;} virtual void setAttachments(){} virtual bool doShowSelectionBox(){return true;} virtual void updateCameraOffset(v3s16 camera_offset){}; // Step object in time virtual void step(float dtime, ClientEnvironment *env){} // Process a message sent by the server side object virtual void processMessage(const std::string &data){} virtual std::string infoText() {return "";} virtual std::string debugInfoText() {return "";} /* This takes the return value of ServerActiveObject::getClientInitializationData */ virtual void initialize(const std::string &data){} // Create a certain type of ClientActiveObject static ClientActiveObject* create(ActiveObjectType type, IGameDef *gamedef, ClientEnvironment *env); // If returns true, punch will not be sent to the server virtual bool directReportPunch(v3f dir, const ItemStack *punchitem=NULL, float time_from_last_punch=1000000) { return false; } protected: // Used for creating objects based on type