Changeset 10624 for code/trunk/src/modules/pong
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/modules/pong/CMakeLists.txt
r8729 r10624 12 12 13 13 ORXONOX_ADD_LIBRARY(pong 14 MODULE14 PLUGIN 15 15 FIND_HEADER_FILES 16 16 LINK_LIBRARIES -
code/trunk/src/modules/pong/PongCenterpoint.cc
r9667 r10624 80 80 /** 81 81 @brief 82 Is called when the gametype has changed.83 */84 void PongCenterpoint::changedGametype()85 {86 SUPER(PongCenterpoint, changedGametype);87 88 // Check, whether it's still Pong.89 this->checkGametype();90 }91 92 /**93 @brief94 82 Checks whether the gametype is Pong and if it is, sets its centerpoint. 95 83 */ … … 98 86 if (this->getGametype() != NULL && this->getGametype()->isA(Class(Pong))) 99 87 { 100 Pong* pongGametype = orxonox_cast<Pong*>(this->getGametype() .get());88 Pong* pongGametype = orxonox_cast<Pong*>(this->getGametype()); 101 89 pongGametype->setCenterpoint(this); 102 90 } -
code/trunk/src/modules/pong/PongCenterpoint.h
r9667 r10624 126 126 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method to create a PongCenterpoint through XML. 127 127 128 virtual void changedGametype(); //!< Is called when the gametype has changed.129 130 128 /** 131 129 @brief Set the template for the ball. (e.g. to attach the model of the ball, but also to attach an EventListener to it to detect, when it hits the boundaries, and e.g. display some ParticleEffets, when it does.) -
code/trunk/src/modules/pong/PongScore.cc
r9939 r10624 170 170 171 171 if (this->getOwner() != NULL && this->getOwner()->getGametype()) 172 this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype() .get());172 this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype()); 173 173 else 174 174 this->owner_ = 0;
Note: See TracChangeset
for help on using the changeset viewer.