Changeset 6111 for code/branches/presentation2/src/orxonox/worldentities
- Timestamp:
- Nov 21, 2009, 12:33:37 AM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/particles2 merged: 6109
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/orxonox/worldentities/ControllableEntity.h
r6108 r6111 145 145 inline void setController(Controller* val) 146 146 { this->controller_ = val; } 147 148 virtual void setTarget( WorldEntity* target ) 149 { this->target_ = target; } 150 virtual WorldEntity* getTarget() 151 { return this->target_.get(); } 147 152 148 153 protected: … … 209 214 Controller* controller_; 210 215 CameraPosition* reverseCamera_; 216 WeakPtr<WorldEntity> target_; 211 217 }; 212 218 } -
code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.cc
r6107 r6111 67 67 68 68 this->spawnparticleduration_ = 3.0f; 69 70 this->aimPosition_ = Vector3::ZERO; 69 71 70 72 this->getPickups().setOwner(this); -
code/branches/presentation2/src/orxonox/worldentities/pawns/Pawn.h
r6107 r6111 116 116 117 117 virtual void startLocalHumanControl(); 118 119 void setAimPosition( Vector3 position ) 120 { this->aimPosition_ = position; } 121 Vector3 getAimPosition() 122 { return this->aimPosition_; } 118 123 119 124 protected: … … 146 151 inline void setWeaponSystem(WeaponSystem* weaponsystem) 147 152 { this->weaponSystem_ = weaponsystem; } 153 154 Vector3 aimPosition_; 148 155 }; 149 156 }
Note: See TracChangeset
for help on using the changeset viewer.