Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5557 in orxonox.OLD for trunk/src/world_entities/weapons/aim.h


Ignore:
Timestamp:
Nov 13, 2005, 3:00:18 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: more around the aim-class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/aim.h

    r5556 r5557  
    99#include "p_node.h"
    1010#include "element_2d.h"
     11
    1112// FORWARD DECLARATION
    1213class Model;
     
    2425  void loadParams(const TiXmlElement* root);
    2526
     27  inline void selectTarget(PNode* target) { this->setParent(target); };
     28  inline PNode* getTarget(PNode* target) { return this->getParent(); };
     29
     30
    2631  void setSize(float size);
    2732  void setTexture(const char* textureFile);
    2833  /** @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; };
    3035
    3136  virtual void tick(float dt);
Note: See TracChangeset for help on using the changeset viewer.