Changeset 7533 for code/trunk/src/orxonox/worldentities
- Timestamp:
- Oct 13, 2010, 11:35:18 AM (14 years ago)
- Location:
- code/trunk/src/orxonox/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/ControllableEntity.cc
r7502 r7533 281 281 282 282 this->player_ = player; 283 this->formerPlayer_ = player; 283 284 this->playerID_ = player->getObjectID(); 284 285 this->bHasLocalController_ = player->isLocalPlayer(); -
code/trunk/src/orxonox/worldentities/ControllableEntity.h
r7163 r7533 55 55 inline PlayerInfo* getPlayer() const 56 56 { return this->player_; } 57 /** 58 @brief Get the player even after the ControllableEntity has stopped being the players ControllableEntity. 59 @return Returns the most recent PlayerInfo. 60 */ 61 inline PlayerInfo* getFormerPlayer() const 62 { return this->formerPlayer_; } 57 63 58 64 inline void setDestroyWhenPlayerLeft(bool bDestroy) … … 89 95 virtual void boost() {} 90 96 virtual void greet() {} 91 virtual void useItem() {}92 virtual void dropItems() {}93 97 virtual void switchCamera(); 94 98 virtual void mouseLook(); … … 204 208 205 209 PlayerInfo* player_; 210 PlayerInfo* formerPlayer_; 206 211 unsigned int playerID_; 207 212 -
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r7163 r7533 248 248 this->setDestroyWhenPlayerLeft(false); 249 249 250 this->dropItems();251 252 250 if (this->getGametype()) 253 251 this->getGametype()->pawnKilled(this, this->lastHitOriginator_);
Note: See TracChangeset
for help on using the changeset viewer.