Changeset 8501 for code/branches/dockingsystem2/src/modules/docking
- Timestamp:
- May 18, 2011, 11:33:28 AM (14 years ago)
- Location:
- code/branches/dockingsystem2/src/modules/docking
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/dockingsystem2/src/modules/docking/Dock.cc
r8493 r8501 278 278 } 279 279 } 280 -
code/branches/dockingsystem2/src/modules/docking/DockToShip.cc
r8493 r8501 58 58 } 59 59 60 void DockToShip::setTargetId( std::stringstr) {60 void DockToShip::setTargetId(const std::string& str) { 61 61 this->target = str; 62 62 } 63 63 64 std::string DockToShip::getTargetId(){64 const std::string& DockToShip::getTargetId() const { 65 65 return this->target; 66 66 } … … 99 99 } 100 100 } 101 -
code/branches/dockingsystem2/src/modules/docking/DockToShip.h
r8493 r8501 61 61 62 62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 63 void setTargetId( std::stringstr);64 std::string getTargetId();63 void setTargetId(const std::string& str); 64 const std::string& getTargetId() const; 65 65 66 66 virtual bool docking(PlayerInfo* player); //!< Called when docking starts -
code/branches/dockingsystem2/src/modules/docking/DockingAnimation.cc
r8493 r8501 67 67 } 68 68 } 69 -
code/branches/dockingsystem2/src/modules/docking/DockingController.cc
r8493 r8501 29 29 #include "DockingController.h" 30 30 31 #include "infos/PlayerInfo.h" 32 #include "worldentities/ControllableEntity.h" 31 33 #include "Dock.h" 32 33 34 34 35 namespace orxonox … … 56 57 { 57 58 // TODO; Give control back to player 59 PlayerInfo* player = this->entity->getPlayer(); 60 assert(player); 58 61 59 62 if (docking) … … 63 66 } 64 67 } 68 -
code/branches/dockingsystem2/src/modules/docking/DockingEffect.cc
r8493 r8501 71 71 } 72 72 } 73 -
code/branches/dockingsystem2/src/modules/docking/DockingPrereqs.h
r8493 r8501 67 67 class Dock; 68 68 class DockingAnimation; 69 class DockingController; 69 70 class DockingTarget; 70 71 class DockingEffect; -
code/branches/dockingsystem2/src/modules/docking/DockingTarget.cc
r8257 r8501 59 59 60 60 61 void DockingTarget::setName( std::stringstr) {61 void DockingTarget::setName(const std::string& str) { 62 62 this->name = str; 63 63 } 64 64 65 std::string DockingTarget::getName(){65 const std::string& DockingTarget::getName() const { 66 66 return this->name; 67 67 } 68 68 } 69 -
code/branches/dockingsystem2/src/modules/docking/DockingTarget.h
r8257 r8501 63 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 64 64 65 virtual void setName( std::stringstr);66 virtual std::string getName();65 virtual void setName(const std::string& str); 66 virtual const std::string& getName() const; 67 67 }; 68 68 -
code/branches/dockingsystem2/src/modules/docking/MoveToDockingTarget.cc
r8493 r8501 65 65 66 66 } 67
Note: See TracChangeset
for help on using the changeset viewer.