- Timestamp:
- Nov 13, 2005, 3:00:18 PM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aim.cc
r5556 r5557 46 46 { 47 47 if (this->material) 48 delete this->material; 49 50 // delete what has to be deleted here 51 52 GraphicsEngine::showMouse(true); 53 GraphicsEngine::stealWMEvents(false); 48 delete this->material; 54 49 } 55 50 … … 68 63 // this->setBindNode(this); 69 64 this->material = new Material; 70 71 // center the mouse on the screen, and also hide the cursors72 SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);73 GraphicsEngine::showMouse(false);74 GraphicsEngine::stealWMEvents(true);75 65 } 76 66 -
trunk/src/world_entities/weapons/aim.h
r5556 r5557 9 9 #include "p_node.h" 10 10 #include "element_2d.h" 11 11 12 // FORWARD DECLARATION 12 13 class Model; … … 24 25 void loadParams(const TiXmlElement* root); 25 26 27 inline void selectTarget(PNode* target) { this->setParent(target); }; 28 inline PNode* getTarget(PNode* target) { return this->getParent(); }; 29 30 26 31 void setSize(float size); 27 32 void setTexture(const char* textureFile); 28 33 /** @param rotationSpeed the speed at what the crosshair should rotate */ 29 void setRotationSpeed(float rotationSpeed) { this->rotationSpeed = rotationSpeed; };34 inline void setRotationSpeed(float rotationSpeed) { this->rotationSpeed = rotationSpeed; }; 30 35 31 36 virtual void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.