Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6493 in orxonox.OLD for branches/network/src/util


Ignore:
Timestamp:
Jan 11, 2006, 5:06:43 PM (19 years ago)
Author:
patrick
Message:

network: playable creation fix

Location:
branches/network/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/util/state.cc

    r6459 r6493  
    3333StoryEntity* State::storyEntity = NULL;
    3434
     35Player* State::player = NULL;
     36
    3537/**
    3638 *  sets camera and target of the current Camera
  • branches/network/src/util/state.h

    r6459 r6493  
    1111class PNode;
    1212class WorldEntity;
     13class Player;
    1314class ObjectManager;
    1415class StoryEntity;
     
    4950  static inline StoryEntity* getCurrentStoryEntity() { return State::storyEntity; };
    5051
     52  //////////////
     53  /// PLAYER ///
     54  //////////////
     55  /** @param storyEntity sets the current StoryEntity that is been played */
     56  static inline void setPlayer(Player* player) { State::player = player; };
     57  /** @returns the current StoryEntity played */
     58  static inline Player* getPlayer() { return State::player; };
    5159
    5260  /////////////////////////
     
    6270  static ObjectManager*         objectManager;      //!< A reference to the current ObjectManager
    6371  static StoryEntity*           storyEntity;        //!< A reference to the current StoryEntity played
     72  static Player*                player;             //!< A reference to the Player
    6473
    6574};
Note: See TracChangeset for help on using the changeset viewer.