Changeset 10624 for code/trunk/src/modules/jump
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/modules/jump/CMakeLists.txt
r10284 r10624 24 24 25 25 ORXONOX_ADD_LIBRARY(jump 26 MODULE26 PLUGIN 27 27 FIND_HEADER_FILES 28 28 LINK_LIBRARIES -
code/trunk/src/modules/jump/JumpCenterpoint.cc
r10262 r10624 80 80 } 81 81 82 void JumpCenterpoint::changedGametype()83 {84 SUPER(JumpCenterpoint, changedGametype);85 86 checkGametype();87 }88 89 82 void JumpCenterpoint::checkGametype() 90 83 { 91 84 if (getGametype() != NULL && this->getGametype()->isA(Class(Jump))) 92 85 { 93 Jump* jumpGametype = orxonox_cast<Jump*>(this->getGametype() .get());86 Jump* jumpGametype = orxonox_cast<Jump*>(this->getGametype()); 94 87 jumpGametype->setCenterpoint(this); 95 88 } -
code/trunk/src/modules/jump/JumpCenterpoint.h
r10262 r10624 114 114 virtual ~JumpCenterpoint() {} 115 115 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method to create a JumpCenterpoint through XML. 116 virtual void changedGametype();117 116 void setPlatformStaticTemplate(const std::string& balltemplate) 118 117 { this->platformStaticTemplate_ = balltemplate; } -
code/trunk/src/modules/jump/JumpEnemy.cc
r10262 r10624 151 151 An array (of size 2) of weak pointers, to be set as the new bats. 152 152 */ 153 void JumpEnemy::setFigure( WeakPtr<JumpFigure>newFigure)153 void JumpEnemy::setFigure(JumpFigure* newFigure) 154 154 { 155 155 figure_ = newFigure; -
code/trunk/src/modules/jump/JumpEnemy.h
r10262 r10624 68 68 69 69 virtual void setProperties(float newLeftBoundary, float newRightBoundary, float newLowerBoundary, float newUpperBoundary, float newHSpeed, float newVSpeed); 70 void setFigure( WeakPtr<JumpFigure> bats);70 void setFigure(JumpFigure* newFigure); 71 71 virtual void touchFigure(); 72 72 bool dead_; -
code/trunk/src/modules/jump/JumpItem.cc
r10262 r10624 109 109 } 110 110 111 void JumpItem::setFigure( WeakPtr<JumpFigure>newFigure)111 void JumpItem::setFigure(JumpFigure* newFigure) 112 112 { 113 113 figure_ = newFigure; -
code/trunk/src/modules/jump/JumpItem.h
r10262 r10624 53 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 54 54 virtual void setProperties(float newLeftBoundary, float newRightBoundary, float newLowerBoundary, float newUpperBoundary, float newHSpeed, float newVSpeed); 55 virtual void setFigure( WeakPtr<JumpFigure> bats);55 virtual void setFigure(JumpFigure* newFigure); 56 56 virtual void touchFigure(); 57 57 -
code/trunk/src/modules/jump/JumpPlatform.cc
r10262 r10624 125 125 } 126 126 127 void JumpPlatform::setFigure( WeakPtr<JumpFigure>newFigure)127 void JumpPlatform::setFigure(JumpFigure* newFigure) 128 128 { 129 129 figure_ = newFigure; -
code/trunk/src/modules/jump/JumpPlatform.h
r10262 r10624 49 49 virtual void tick(float dt); 50 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 51 void setFigure( WeakPtr<JumpFigure> bats); //!< Set the bats for the ball.51 void setFigure(JumpFigure* newFigure); 52 52 virtual void touchFigure(); 53 53 -
code/trunk/src/modules/jump/JumpProjectile.cc
r10262 r10624 84 84 } 85 85 86 void JumpProjectile::setFigure( WeakPtr<JumpFigure>figure)86 void JumpProjectile::setFigure(JumpFigure* figure) 87 87 { 88 88 figure_ = figure; -
code/trunk/src/modules/jump/JumpProjectile.h
r10262 r10624 56 56 { return Vector2(this->fieldWidth_, this->fieldHeight_); } 57 57 58 void setFigure( WeakPtr<JumpFigure>figure);58 void setFigure(JumpFigure* figure); 59 59 60 60 protected: -
code/trunk/src/modules/jump/JumpScore.cc
r10437 r10624 118 118 if (this->getOwner() != NULL && this->getOwner()->getGametype()) 119 119 { 120 this->owner_ = orxonox_cast<Jump*>(this->getOwner()->getGametype() .get());120 this->owner_ = orxonox_cast<Jump*>(this->getOwner()->getGametype()); 121 121 } 122 122 else
Note: See TracChangeset
for help on using the changeset viewer.