Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2007, 5:00:41 PM (16 years ago)
Author:
rgrieder
Message:
  • added namespace Orxonox to every file
    • removed all the "using namespace Ogre" in the header files
  • cleaned up with the includes: attempt to include as little as possible to reduce compile time.
    • created a header file: orxonox_prerequisites.h
    • used OgrePrerequisites in the header files
    • avoided including "Ogre.h", using separate files instead
  • created empty class: AmmunitionDump
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto_vs05/include/orxonox_ship.h

    r159 r161  
    3030#define ORXONOX_SHIP_H
    3131
    32 #include "Ogre.h"
     32#include "OgrePrerequisites.h"
    3333
    34 #include "bullet.h"
    35 
    36 using namespace Ogre;
    37 
    38 class OrxonoxShip
    39 {
    40 public:
    41         OrxonoxShip(SceneManager*, SceneNode*);
    42         virtual ~OrxonoxShip();
    43 
    44         virtual bool initialise();
    45 
    46         void setMainThrust(const Real);
    47         void setSideThrust(const Real);
    48   void setYThrust(const Real);
    49         void turnUpAndDown(const Radian&);
    50         void turnLeftAndRight(const Radian&);
    51 
    52   SceneNode* getRootNode();
    53   Vector3 getSpeed();
    54 
    55         Bullet* fire();
    56 
    57         bool tick(unsigned long, Real);
    58 
    59 protected:
    60 
    61 protected:
    62         SceneManager *sceneMgr_;
    63         SceneNode *rootNode_;
    64         Entity *shipEntity_;
    65 
    66         Vector3 currentSpeed_;  // relative to space
    67         Vector3 currentThrust_; // relative to the ship
    68   Real baseThrust_;
    69         int objectCounter_;
    70         Vector3 bulletSpeed_;
    71 
    72 };
     34#include "Orxonox_prerequisites.h"
    7335
    7436
     37namespace Orxonox {
     38
     39  class OrxonoxShip
     40  {
     41  public:
     42          OrxonoxShip(Ogre::SceneManager*, Ogre::SceneNode*);
     43          virtual ~OrxonoxShip();
     44
     45          virtual bool initialise();
     46
     47          void setMainThrust(const Ogre::Real);
     48          void setSideThrust(const Ogre::Real);
     49    void setYThrust(const Ogre::Real);
     50          void turnUpAndDown(const Ogre::Radian&);
     51          void turnLeftAndRight(const Ogre::Radian&);
     52
     53    Ogre::SceneNode* getRootNode();
     54    Ogre::Vector3 getSpeed();
     55
     56          Bullet* fire();
     57
     58          bool tick(unsigned long, Ogre::Real);
     59
     60  protected:
     61
     62  protected:
     63          Ogre::SceneManager *sceneMgr_;
     64          Ogre::SceneNode *rootNode_;
     65          Ogre::Entity *shipEntity_;
     66
     67          Ogre::Vector3 currentSpeed_;  // relative to space
     68          Ogre::Vector3 currentThrust_; // relative to the ship
     69    Ogre::Real baseThrust_;
     70          int objectCounter_;
     71          Ogre::Vector3 bulletSpeed_;
     72
     73  };
     74
     75}
     76
    7577#endif /* ORXONOX_SHIP_H */
Note: See TracChangeset for help on using the changeset viewer.