#ifndef _SpaceShip_H__ #define _SpaceShip_H__ #include #include #include "../OrxonoxPrereqs.h" #include "Model.h" #include "BillboardSet.h" class TiXmlElement; // Forward declaration namespace orxonox { class ParticleInterface; // Forward declaration class SpaceShip : public Model, public OIS::MouseListener { public: SpaceShip(); ~SpaceShip(); void setConfigValues(); virtual void loadParams(TiXmlElement* xmlElem); virtual void tick(float dt); /* void moveForward(float moveForward); void rotateUp(float rotateUp); void rotateDown(float rotateDown); void rotateRight(float rotateRight); void rotateLeft(float rotateLeft); void loopRight(float loopRight); void loopLeft(float loopLeft); void brakeForward(float brakeForward); void brakeRotate(float brakeRotate); void brakeLoop(float brakeLoop); void maxSpeedForward(float maxSpeedForward); void maxSpeedRotateUpDown(float maxSpeedRotateUpDown); void maxSpeedRotateRightLeft(float maxSpeedRotateRightLeft); void maxSpeedLoopRightLeft(float maxSpeedLoopRightLeft); */ bool mouseMoved(const OIS::MouseEvent &e); bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id); bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id); private: bool bInvertYAxis_; bool setMouseEventCallback_; bool bLMousePressed_; bool bRMousePressed_; Ogre::SceneNode* camNode_; ParticleInterface* tt_; BillboardSet redBillboard_; BillboardSet greenBillboard_; Ogre::SceneNode* redNode_; Ogre::SceneNode* greenNode_; float blinkTime_; BillboardSet crosshairNear_; BillboardSet crosshairFar_; Ogre::SceneNode* chNearNode_; Ogre::SceneNode* chFarNode_; float timeToReload_; float reloadTime_; float maxSideAndBackSpeed_; float maxSpeed_; float maxRotation_; float translationAcceleration_; float rotationAcceleration_; float translationDamping_; float rotationDamping_; Radian maxRotationRadian_; Radian rotationAccelerationRadian_; Radian rotationDampingRadian_; Radian zeroRadian_; Radian mouseXRotation_; Radian mouseYRotation_; float mouseX_; float mouseY_; /* float moveForward_; float rotateUp_; float rotateDown_; float rotateRight_; float rotateLeft_; float loopRight_; float loopLeft_; float brakeForward_; float brakeRotate_; float brakeLoop_; float speedForward_; float speedRotateUpDown_; float speedRotateRightLeft_; float speedLoopRightLeft_; float maxSpeedForward_; float maxSpeedRotateUpDown_; float maxSpeedRotateRightLeft_; float maxSpeedLoopRightLeft_; float accelerationForward_; float accelerationRotateUpDown_; float accelerationRotateRightLeft_; float accelerationLoopRightLeft_; float speed; float rotate; float loop; float mouseY; float mouseX; float maxMouseX; float minMouseX; bool moved; */ int emitterRate_; }; } #endif /* _SpaceShip_H__ */