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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.