Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6468 in orxonox.OLD for trunk/src/util/state.h


Ignore:
Timestamp:
Jan 11, 2006, 12:00:06 PM (18 years ago)
Author:
bensch
Message:

trunk: added localPlayer and SkyBox to state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/state.h

    r6441 r6468  
    1111class WorldEntity;
    1212class ObjectManager;
     13class SkyBox;
     14class Player;
     15
    1316
    1417//! handles states about orxonox's most importatn objects
     
    3134  static inline PNode* getCameraTarget() { return State::cameraTarget; };
    3235
     36  /** @returns the Local Player */
     37  static inline Player* localsPlayer() { return State::_localPlayer; };
     38  /** @param localPlayer the local Player */
     39  static inline void setLocalPlayer(Player* localPlayer) { State::_localPlayer = localPlayer; };
     40
     41  /** @returns the current SkyBox */
     42  static inline SkyBox* skyBox() { return State::_skyBox; };
     43  /** @param skyBox the SkyBox */
     44  static inline SkyBox* setSkyBox(SkyBox* skyBox) { State::_skyBox = skyBox; };
     45
     46
    3347  //////////////////////
    3448  /// OBJECT-MANAGER ///
     
    3852  /** @returns the current ObjectManager. */
    3953  static inline ObjectManager* getObjectManager() { return State::objectManager; };
     54
    4055
    4156  static inline void setResolution(unsigned int resX, unsigned int resY) { State::_resX = resX; State::_resY = resY; };
     
    5570  static ObjectManager*         objectManager;      //!< A referenct to the current ObjectManager
    5671
     72  static Player*                _localPlayer;       //!< The Local Player.
     73  static SkyBox*                _skyBox;            //!< The SkyBox used in the current world.
    5774  static unsigned int           _resX;              //!< The X Resolution of the screen.
    5875  static unsigned int           _resY;              //!< The Y Resolution of the screen.
    59 };
     76  };
    6077
    6178#endif /* _STATE_H */
Note: See TracChangeset for help on using the changeset viewer.