- Timestamp:
- May 24, 2009, 5:42:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/ControllableEntity.h
r2973 r3038 39 39 class _OrxonoxExport ControllableEntity : public MobileEntity 40 40 { 41 friend class PlayerInfo; // PlayerInfo uses setPlayer and removePlayer 42 41 43 public: 42 44 ControllableEntity(BaseObject* creator); … … 50 52 virtual void changedPlayer() {} 51 53 52 virtual void setPlayer(PlayerInfo* player);53 virtual void removePlayer();54 54 inline PlayerInfo* getPlayer() const 55 55 { return this->player_; } … … 131 131 132 132 protected: 133 virtual void setPlayer(PlayerInfo* player); // don't call this directly, use friend class PlayerInfo instead 134 virtual void removePlayer(); // don't call this directly, use friend class PlayerInfo instead 135 133 136 virtual void startLocalHumanControl(); 134 137 virtual void stopLocalHumanControl();
Note: See TracChangeset
for help on using the changeset viewer.