Changeset 8668
- Timestamp:
 - May 29, 2011, 7:15:43 PM (14 years ago)
 - Location:
 - code/branches/presentation/src/orxonox
 - Files:
 - 
          
- 4 edited
 
- 
          controllers/Controller.h (modified) (1 diff)
 - 
          interfaces/InterfaceCompilation.cc (modified) (2 diffs)
 - 
          interfaces/PlayerTrigger.h (modified) (2 diffs)
 - 
          worldentities/pawns/SpaceShip.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/presentation/src/orxonox/controllers/Controller.h
r8580 r8668 50 50 { return this->player_; } 51 51 52 virtual inlinevoid hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) {};52 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) {}; 53 53 54 54 /* Override needed for different visual effects (e.g. in "NewHumanController.cc") depending on  - 
        
code/branches/presentation/src/orxonox/interfaces/InterfaceCompilation.cc
r8667 r8668 42 42 #include "core/CoreIncludes.h" 43 43 44 #include "infos/PlayerInfo.h" 45 #include "worldentities/pawns/Pawn.h" 46 44 47 namespace orxonox 45 48 { … … 60 63 61 64 this->isForPlayer_ = false; 65 } 66 67 void PlayerTrigger::setTriggeringPawn(Pawn* pawn) 68 { 69 assert(pawn); 70 this->pawn_ = WeakPtr<Pawn>(pawn); 71 if (pawn) 72 this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer()); 62 73 } 63 74  - 
        
code/branches/presentation/src/orxonox/interfaces/PlayerTrigger.h
r8667 r8668 39 39 40 40 #include "core/OrxonoxClass.h" 41 42 #include "infos/PlayerInfo.h"43 #include "worldentities/pawns/Pawn.h"44 41 45 42 namespace orxonox … … 86 83 @param player A pointer to the Pawn that triggered the PlayerTrigger. 87 84 */ 88 inline void setTriggeringPawn(Pawn* pawn) 89 { assert(pawn); this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer()); this->pawn_ = WeakPtr<Pawn>(pawn); } 85 void setTriggeringPawn(Pawn* pawn); 90 86 91 87 /**  - 
        
code/branches/presentation/src/orxonox/worldentities/pawns/SpaceShip.cc
r8658 r8668 245 245 Pawn::rotateYaw(value); 246 246 247 //This function call adds a lift to the ship when it is rotating to make it's movement more "realistic" and enhance the feeling.247 //This function call adds a lift to the ship when it is rotating to make it's movement more "realistic" and enhance the feeling. 248 248 if (abs(this-> getLocalVelocity().z) < stallSpeed_) {this->moveRightLeft(-lift_ / 5 * value * sqrt(abs(this-> getLocalVelocity().z)));} 249 249 } … … 255 255 Pawn::rotatePitch(value); 256 256 257 //This function call adds a lift to the ship when it is pitching to make it's movement more "realistic" and enhance the feeling.257 //This function call adds a lift to the ship when it is pitching to make it's movement more "realistic" and enhance the feeling. 258 258 if (abs(this-> getLocalVelocity().z) < stallSpeed_) {this->moveUpDown(lift_ / 5 * value * sqrt(abs(this-> getLocalVelocity().z)));} 259 259 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






