- Timestamp:
- Dec 11, 2015, 3:26:20 PM (9 years ago)
- Location:
- code/branches/presentationHS15
- Files:
-
- 6 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15
- Property svn:mergeinfo changed
-
code/branches/presentationHS15/src/orxonox/worldentities/CMakeLists.txt
r10962 r10970 12 12 TeamSpawnPoint.cc 13 13 ExplosionPart.cc 14 Actionpoint.cc 14 15 ) 15 16 -
code/branches/presentationHS15/src/orxonox/worldentities/SpawnPoint.h
r9667 r10970 55 55 { return this->template_; } 56 56 57 Pawn* spawn();57 virtual Pawn* spawn(); 58 58 void spawn(ControllableEntity* entity); 59 59 -
code/branches/presentationHS15/src/orxonox/worldentities/TeamSpawnPoint.cc
r9667 r10970 49 49 XMLPortParam(TeamSpawnPoint, "team", setTeamNumber, getTeamNumber, xmlelement, mode).defaultValues(0); 50 50 } 51 Pawn* TeamSpawnPoint::spawn() 52 { 53 Pawn* entity = SpawnPoint::spawn(); 54 static_cast<ControllableEntity*>(entity)->setTeam (this->teamNumber_); 55 return entity; 56 } 51 57 } -
code/branches/presentationHS15/src/orxonox/worldentities/TeamSpawnPoint.h
r9667 r10970 49 49 unsigned int getTeamNumber() const 50 50 { return this->teamNumber_; } 51 virtual Pawn* spawn(); 51 52 52 53 private: 53 unsignedint teamNumber_;54 int teamNumber_; 54 55 }; 55 56 } -
code/branches/presentationHS15/src/orxonox/worldentities/pawns/Pawn.h
r10962 r10970 201 201 const std::string& getExplosionSound(); 202 202 203 virtual const WeaponSystem* getWeaponSystem() const 204 { return this->weaponSystem_; } 205 203 206 protected: 204 207 virtual void preDestroy();
Note: See TracChangeset
for help on using the changeset viewer.