Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 3, 2007, 6:20:21 PM (16 years ago)
Author:
rgrieder
Message:
  • added a few comments
  • converted RunManager and OrxonoxShip to match the style guide
Location:
code/branches/main_reto/include
Files:
2 edited

Legend:

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

    r146 r152  
    3939{
    4040public:
    41         Vector3 speed;
    42         float thrust, sideThrust, baseThrust;
    43         Vector3 bulletSpeed;
    44 
    4541        OrxonoxShip(SceneManager*, SceneNode*);
    4642        virtual ~OrxonoxShip();
     
    5046        void setThrust(const Real);
    5147        void setSideThrust(const Real);
    52         void setYaw(const Radian);
    53         void setPitch(const Radian);
    54         void setRoll(const Radian);
    55 
    56         Real getThrust();
     48        void turnUpAndDown(const Radian&);
     49        void turnLeftAndRight(const Radian&);
    5750
    5851        Bullet* fire();
     
    6053        bool tick(unsigned long, Real);
    6154
    62         SceneNode *mRootNode;
     55protected:
     56
     57
     58public:
     59
    6360
    6461protected:
    65         SceneManager *mSceneMgr;
    66         Entity *mShip;
     62        SceneManager *SceneMgr_;
     63        SceneNode *RootNode_;
     64        Entity *ShipEntity_;
    6765
    68         int n;
     66        Vector3 currentSpeed_;
     67        float CurrentThrust_;
     68  float CurrentSideThrust_;
     69  float baseThrust_;
     70        int objectCounter_;
     71        Vector3 bulletSpeed_;
    6972
    7073};
  • code/branches/main_reto/include/run_manager.h

    r146 r152  
    3838#include "orxonox_ship.h"
    3939
     40
    4041//Use this define to signify OIS will be used as a DLL
    4142//(so that dll import/export macros are in effect)
     
    5556        virtual ~RunManager();
    5657
    57         virtual bool tick(unsigned long, float);
     58        virtual bool tick(unsigned long, Real);
    5859
    5960protected:
    60         OgreControl  *mOgre;
    61 
    62         SceneManager *mSceneMgr;
    63         RenderWindow* mWindow;
    64 
    65         OrxonoxScene *mScene;
    66         Camera* mCamera;
    67         SceneNode *mShipNode;
    68         OrxonoxShip *mShip;
    69 
    70         bool mStatsOn;
    71 
    72         std::string mDebugText;
    73 
    74         unsigned int mNumScreenShots;
    75         // just to stop toggles flipping too fast
    76         Real mTimeUntilNextToggle ;
    77         TextureFilterOptions mFiltering;
    78         int mAniso;
    79 
    80         int mSceneDetailIndex ;
    81         Overlay* mDebugOverlay;
    82 
    83         //OIS Input devices
    84         OIS::InputManager* mInputManager;
    85         OIS::Mouse*    mMouse;
    86         OIS::Keyboard* mKeyboard;
    87         OIS::JoyStick* mJoy;
    88 
    89         bool leftButtonDown;
    90         Bullet **mBullets;
    91         int mBulletsSize;
    92         int mBulletsPosition;
    93 
    94         // previously elapsed render time
    95         unsigned long mTime;
    96 
    9761        virtual void createCamera(void);
    9862
     
    12185        virtual void showDebugOverlay(bool);
    12286
     87protected:
     88        OgreControl  *ogre_;
     89        SceneManager *sceneMgr_;
     90        RenderWindow *window_;
     91        OrxonoxScene *backgroundScene_;
     92        Camera       *camera_;
     93        OrxonoxShip  *playerShip_;
     94
     95        bool statsOn_;
     96        std::string debugText_;
     97
     98        unsigned int screenShotCounter_;
     99        // just to stop toggles flipping too fast
     100        Real timeUntilNextToggle_;
     101        bool leftButtonDown_;
     102        TextureFilterOptions filtering_;
     103        int aniso_;
     104
     105        int sceneDetailIndex_;
     106        Overlay* debugOverlay_;
     107
     108        //OIS Input devices
     109        OIS::InputManager* inputManager_;
     110        OIS::Mouse*    mouse_;
     111        OIS::Keyboard* keyboard_;
     112        OIS::JoyStick* joystick_;
     113
     114  // Bullet array
     115        Bullet **bullets_;
     116        int bulletsSize_;
     117        int bulletsIndex_;
     118
     119        // previously elapsed render time
     120        unsigned long totalTime_;
     121
    123122};
    124123
Note: See TracChangeset for help on using the changeset viewer.