Changeset 10843 for code/branches
- Timestamp:
- Nov 23, 2015, 9:08:28 PM (9 years ago)
- Location:
- code/branches/campaignHS15
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/data/levels/AITest.oxw
r10840 r10843 61 61 </controller> 62 62 </SpaceShip> 63 <SpaceShip position="4000 ,1500, -1600 " lookat="0,0,0" team=0>63 <!-- <SpaceShip position="4000 ,1500, -1600 " lookat="0,0,0" team=0> 64 64 <templates> 65 65 <Template link=spaceshipassff /> … … 96 96 </SectionController> 97 97 </controller> 98 </SpaceShip> 98 </SpaceShip> --> 99 99 100 100 <!-- <SpaceShip position="-4000, 1500, -5000" lookat="0,0,0"> -
code/branches/campaignHS15/src/orxonox/controllers/CommonController.cc
r10840 r10843 69 69 //orxout(internal_error) << "I died, my Rank is " << rank_ << endl; 70 70 } 71 71 72 72 void CommonController::XMLPort( Element& xmlelement, XMLPort::Mode mode ) 73 73 { … … 85 85 void CommonController::tick(float dt) 86 86 { 87 87 if (this->bHasTargetPosition_) 88 { 89 this->moveToTargetPosition(dt); 90 } 91 else if (this->bLookAtTarget_) 92 { 93 this->lookAtTarget(dt); 94 } 95 if (bShooting_) 96 { 97 this->doFire(); 98 } 99 SUPER(CommonController, tick, dt); 88 100 } 89 101 -
code/branches/campaignHS15/src/orxonox/controllers/CommonController.h
r10840 r10843 68 68 69 69 70 class _OrxonoxExport CommonController : public Controller 70 class _OrxonoxExport CommonController : public Controller, public Tickable 71 71 { 72 72 -
code/branches/campaignHS15/src/orxonox/controllers/DivisionController.cc
r10840 r10843 64 64 void DivisionController::tick(float dt) 65 65 { 66 66 67 if (!this->isActive()) 67 68 return; 68 if (this->bHasTargetPosition_) 69 { 70 this->moveToTargetPosition(dt); 71 } 72 else if (this->bLookAtTarget_) 73 { 74 this->lookAtTarget(dt); 75 } 76 if (bShooting_) 77 { 78 this->doFire(); 79 } 69 80 70 81 71 SUPER(DivisionController, tick, dt); -
code/branches/campaignHS15/src/orxonox/controllers/DivisionController.h
r10834 r10843 36 36 namespace orxonox 37 37 { 38 class _OrxonoxExport DivisionController : public LeaderController , public Tickable39 38 class _OrxonoxExport DivisionController : public LeaderController 39 { 40 40 public: 41 41 //----[language demanded functions]---- -
code/branches/campaignHS15/src/orxonox/controllers/LeaderController.cc
r10834 r10843 43 43 } 44 44 45 45 void LeaderController::tick(float dt) 46 { 47 48 SUPER(LeaderController, tick, dt); 49 } 46 50 LeaderController::~LeaderController() 47 51 { -
code/branches/campaignHS15/src/orxonox/controllers/LeaderController.h
r10834 r10843 45 45 virtual ~LeaderController(); 46 46 //----[language demanded functions]---- 47 virtual void tick(float dt); 47 48 48 49 //----[pseudo virtual methods]---- -
code/branches/campaignHS15/src/orxonox/controllers/SectionController.cc
r10840 r10843 63 63 void SectionController::tick(float dt) 64 64 { 65 65 if (!this->isActive()) 66 66 return; 67 if (this->bHasTargetPosition_) 68 { 69 this->moveToTargetPosition(dt); 70 } 71 else if (this->bLookAtTarget_) 72 { 73 this->lookAtTarget(dt); 74 } 75 if (bShooting_) 76 { 77 this->doFire(); 78 } 67 79 68 80 69 SUPER(SectionController, tick, dt); -
code/branches/campaignHS15/src/orxonox/controllers/SectionController.h
r10834 r10843 35 35 namespace orxonox 36 36 { 37 class _OrxonoxExport SectionController : public LeaderController , public Tickable37 class _OrxonoxExport SectionController : public LeaderController 38 38 { 39 39 public: -
code/branches/campaignHS15/src/orxonox/controllers/WingmanController.cc
r10838 r10843 61 61 if (!this->isActive()) 62 62 return; 63 if (this->bHasTargetPosition_) 64 { 65 this->moveToTargetPosition(dt); 66 } 67 else if (this->bLookAtTarget_) 68 { 69 this->lookAtTarget(dt); 70 } 71 if (bShooting_) 72 { 73 this->doFire(); 74 } 63 75 64 76 65 SUPER(WingmanController, tick, dt); -
code/branches/campaignHS15/src/orxonox/controllers/WingmanController.h
r10834 r10843 36 36 namespace orxonox 37 37 { 38 class _OrxonoxExport WingmanController : public CommonController , public Tickable38 class _OrxonoxExport WingmanController : public CommonController 39 39 { 40 40 public: -
code/branches/campaignHS15/src/orxonox/worldentities/CMakeLists.txt
r8706 r10843 12 12 SpawnPoint.cc 13 13 TeamSpawnPoint.cc 14 ActionPoint.cc 14 15 ) 15 16
Note: See TracChangeset
for help on using the changeset viewer.