Changeset 9500 in orxonox.OLD for branches/proxy/src/world_entities
- Timestamp:
- Jul 27, 2006, 12:15:06 PM (18 years ago)
- Location:
- branches/proxy/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/playable.cc
r9406 r9500 273 273 } 274 274 275 276 /** 277 * @brief sets the TeamID and all the properties needed to be visible on the Playable 278 * @param teamID: the new TeamID of the Entity 279 */ 280 void Playable::setTeam(int teamID) 281 { 282 /// Derive this function to make it look different with differen groups. 283 PRINTF(4)("No special team specific function implemented for %s::%s in Team %d\n", this->getClassCName(), this->getCName(), teamID); 284 } 285 286 275 287 /** 276 288 * @brief attaches the current Camera to this Playable -
branches/proxy/src/world_entities/playable.h
r9499 r9500 61 61 /** @return a List of Events in PEV_* sytle */ 62 62 inline const std::vector<int>& getEventList() { return this->events; }; 63 virtual void setTeam(int teamID); 64 63 65 64 66 // Camera and Playmode … … 87 89 virtual void tick(float dt); 88 90 91 92 inline bool beFire() const { return this->bFire; } 93 inline void fire(bool bF) { this->bFire = bF;} 94 89 95 // Transformations: 90 96 static Playable::Playmode stringToPlaymode(const std::string& playmode); 91 97 static const std::string& playmodeToString(Playable::Playmode playmode); 92 98 static const std::string playmodeNames[]; 93 94 inline bool beFire(){ return this->bFire; }95 inline void fire(bool bF){ this->bFire = bF;}96 99 97 100 protected: -
branches/proxy/src/world_entities/space_ships/turbine_hover.cc
r9497 r9500 236 236 void TurbineHover::setBoostColor(const Color& color) 237 237 { 238 printf("color:: "), color.debug(); 238 239 this->burstSystem->setColor(0.0, color); 239 240 this->burstSystem->setColor(0.2, color * 0.6); … … 265 266 266 267 } 268 269 void TurbineHover::setTeam(int teamID) 270 { 271 printf("::::::::::::::::: TEAM ::: %d\n", teamID); 272 if (teamID == 0) 273 this->setBoostColor(Color::blue); 274 else if (teamID == 1) 275 this->setBoostColor(Color::red); 276 } 277 267 278 268 279 -
branches/proxy/src/world_entities/space_ships/turbine_hover.h
r9497 r9500 29 29 virtual void enter(); 30 30 virtual void leave(); 31 32 virtual void setTeam(int teamID); 31 33 32 34 virtual void postSpawn();
Note: See TracChangeset
for help on using the changeset viewer.