Changeset 10970 for code/branches/presentationHS15/src/orxonox
- Timestamp:
- Dec 11, 2015, 3:26:20 PM (9 years ago)
- Location:
- code/branches/presentationHS15
- Files:
-
- 8 edited
- 18 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15
- Property svn:mergeinfo changed
-
code/branches/presentationHS15/src/orxonox/controllers/CMakeLists.txt
r10216 r10970 11 11 FormationController.cc 12 12 ControllerDirector.cc 13 DivisionController.cc 14 WingmanController.cc 15 SectionController.cc 16 CommonController.cc 17 ActionpointController.cc 18 FlyingController.cc 19 FightingController.cc 20 MasterController.cc 13 21 ) -
code/branches/presentationHS15/src/orxonox/controllers/FormationController.cc
r10631 r10970 277 277 } 278 278 279 Vector2 coord = get2DView coordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);279 Vector2 coord = get2DViewCoordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target); 280 280 float distance = (target - this->getControllableEntity()->getPosition()).length(); 281 281 float rotateX = clamp(coord.x * 10, -1.0f, 1.0f); … … 970 970 if (controller) 971 971 { 972 if (controller->getIdentifier()->getName() == "MasterController") 973 return true; 972 974 FormationController* ac = orxonox_cast<FormationController*>(controller); 973 975 if (ac) … … 981 983 if (controller) 982 984 { 985 if (controller->getIdentifier()->getName() == "MasterController") 986 return true; 983 987 FormationController* ac = orxonox_cast<FormationController*>(controller); 984 988 if (ac) … … 1069 1073 return; 1070 1074 1071 Vector2 coord = get2DView coordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);1075 Vector2 coord = get2DViewCoordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target); 1072 1076 float distance = (target - this->getControllableEntity()->getPosition()).length(); 1073 1077 -
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.