virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;}
virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;}
virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;}
- virtual bool isPlayer(){return false;}
- virtual bool isLocalPlayer(){return false;}
+ 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(u8 type, IGameDef *gamedef,
ClientEnvironment *env);
};
#endif
-
class MainShaderConstantSetter : public IShaderConstantSetter
{
public:
- MainShaderConstantSetter(IrrlichtDevice *device):
- m_device(device)
+ MainShaderConstantSetter(IrrlichtDevice *device)
{}
~MainShaderConstantSetter() {}
services->setVertexShaderConstant(world.pointer(), 8, 4);
}
-
-private:
- IrrlichtDevice *m_device;
};
/*