- Timestamp:
- Dec 11, 2015, 3:26:20 PM (9 years ago)
- Location:
- code/branches/presentationHS15
- Files:
-
- 18 edited
- 23 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15
- Property svn:mergeinfo changed
-
code/branches/presentationHS15/data/defaultConfig/orxonox.ini
r10262 r10970 4 4 campaignMissions_[2] = "pirateAttack.oxw" 5 5 campaignMissions_[3] = "iJohnVane_TriptoArea51.oxw" 6 campaignMissions_[4] = "iiJohnVane_Area51UnderFire.oxw" 7 campaignMissions_[5] = "iiiJohnVane_EscapeTheBastards.oxw" 8 campaignMissions_[6] = "expeditionSector.oxw" 9 campaignMissions_[7] = "shuttleAttack.oxw" 10 campaignMissions_[8] = "shuttleRetaliation.oxw" -
code/branches/presentationHS15/data/gui/layouts/CampaignMenu.layout
r10262 r10970 8 8 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1.0,0},{1.0,0}}" /> 9 9 <Property Name="BackgroundEnabled" Value="False" /> 10 <Window Type="MenuWidgets/Button" Name="orxonox/Mission OneButton" >11 <Property Name="Text" Value="Mission 1" />10 <Window Type="MenuWidgets/Button" Name="orxonox/Mission1Button" > 11 <Property Name="Text" Value="Mission One" /> 12 12 <Property Name="Visible" Value="False"/> 13 13 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 14 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.2875,0},{0.6,0},{0.3375,0}}" />15 <Event Name="Clicked" Function="CampaignMenu.Mission OneButton_clicked"/>14 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.1,0},{0.65,0},{0.15,0}}" /> 15 <Event Name="Clicked" Function="CampaignMenu.Mission1Button_clicked"/> 16 16 </Window> 17 <Window Type="MenuWidgets/Button" Name="orxonox/Mission TwoButton" >18 <Property Name="Text" Value=" Mission 2" />17 <Window Type="MenuWidgets/Button" Name="orxonox/Mission2Button" > 18 <Property Name="Text" Value="Fight in our Back" /> 19 19 <Property Name="Visible" Value="False"/> 20 20 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 21 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />21 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.18,0},{0.65,0},{0.23,0}}" /> 22 22 <Property Name="Disabled" Value="True" /> 23 <Event Name="Clicked" Function="CampaignMenu.Mission TwoButton_clicked"/>23 <Event Name="Clicked" Function="CampaignMenu.Mission2Button_clicked"/> 24 24 </Window> 25 <Window Type="MenuWidgets/Button" Name="orxonox/Mission ThreeButton" >26 <Property Name="Text" Value=" Mission 3" />25 <Window Type="MenuWidgets/Button" Name="orxonox/Mission3Button" > 26 <Property Name="Text" Value="Pirate Attack" /> 27 27 <Property Name="Visible" Value="False"/> 28 28 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 29 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.4375,0},{0.6,0},{0.4875,0}}" />29 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.26,0},{0.65,0},{0.31,0}}" /> 30 30 <Property Name="Disabled" Value="True" /> 31 <Event Name="Clicked" Function="CampaignMenu.Mission ThreeButton_clicked"/>31 <Event Name="Clicked" Function="CampaignMenu.Mission3Button_clicked"/> 32 32 </Window> 33 <Window Type="MenuWidgets/Button" Name="orxonox/Mission FourButton" >34 <Property Name="Text" Value=" Mission 4" />33 <Window Type="MenuWidgets/Button" Name="orxonox/Mission4Button" > 34 <Property Name="Text" Value="Trip to Area 51" /> 35 35 <Property Name="Visible" Value="False"/> 36 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 37 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.5125,0},{0.6,0},{0.5625,0}}" />37 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.34,0},{0.65,0},{0.39,0}}" /> 38 38 <Property Name="Disabled" Value="True" /> 39 <Event Name="Clicked" Function="CampaignMenu.Mission FourButton_clicked"/>39 <Event Name="Clicked" Function="CampaignMenu.Mission4Button_clicked"/> 40 40 </Window> 41 <Window Type="MenuWidgets/Button" Name="orxonox/Mission5Button" > 42 <Property Name="Text" Value="Area 51 under Fire" /> 43 <Property Name="Visible" Value="False"/> 44 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 45 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.42,0},{0.65,0},{0.47,0}}" /> 46 <Property Name="Disabled" Value="True" /> 47 <Event Name="Clicked" Function="CampaignMenu.Mission5Button_clicked"/> 48 </Window> 49 <Window Type="MenuWidgets/Button" Name="orxonox/Mission6Button" > 50 <Property Name="Text" Value="Escape the Bastards" /> 51 <Property Name="Visible" Value="False"/> 52 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 53 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.50,0},{0.65,0},{0.55,0}}" /> 54 <Property Name="Disabled" Value="True" /> 55 <Event Name="Clicked" Function="CampaignMenu.Mission6Button_clicked"/> 56 </Window> 57 <Window Type="MenuWidgets/Button" Name="orxonox/Mission7Button" > 58 <Property Name="Text" Value="Expedition to Sector 5C" /> 59 <Property Name="Visible" Value="False"/> 60 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 61 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.58,0},{0.65,0},{0.63,0}}" /> 62 <Property Name="Disabled" Value="True" /> 63 <Event Name="Clicked" Function="CampaignMenu.Mission7Button_clicked"/> 64 </Window> 65 <Window Type="MenuWidgets/Button" Name="orxonox/Mission8Button" > 66 <Property Name="Text" Value="Shuttle under Attack" /> 67 <Property Name="Visible" Value="False"/> 68 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 69 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.66,0},{0.65,0},{0.71,0}}" /> 70 <Property Name="Disabled" Value="True" /> 71 <Event Name="Clicked" Function="CampaignMenu.Mission8Button_clicked"/> 72 </Window> 73 <Window Type="MenuWidgets/Button" Name="orxonox/Mission9Button" > 74 <Property Name="Text" Value="Retaliation" /> 75 <Property Name="Visible" Value="False"/> 76 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 77 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.74,0},{0.65,0},{0.79,0}}" /> 78 <Property Name="Disabled" Value="True" /> 79 <Event Name="Clicked" Function="CampaignMenu.Mission9Button_clicked"/> 80 </Window> 81 82 41 83 <Window Type="MenuWidgets/Button" Name="orxonox/CampaignMenuBackButton" > 42 84 <Property Name="Text" Value="Back" /> 43 85 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 44 <Property Name="UnifiedAreaRect" Value="{{0. 4,0},{0.8,0},{0.6,0},{0.85,0}}" />86 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.85,0},{0.65,0},{0.9,0}}" /> 45 87 <Event Name="Clicked" Function="CampaignMenu.CampaignMenuBackButton_clicked"/> 46 88 </Window> -
code/branches/presentationHS15/data/gui/scripts/CampaignMenu.lua
r10262 r10970 8 8 9 9 function P.updateButtons() 10 P.updateButton(0, winMgr:getWindow("orxonox/MissionOneButton")) 11 P.updateButton(1, winMgr:getWindow("orxonox/MissionTwoButton")) 12 P.updateButton(2, winMgr:getWindow("orxonox/MissionThreeButton")) 13 P.updateButton(3, winMgr:getWindow("orxonox/MissionFourButton")) 10 P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button")) 11 P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button")) 12 P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button")) 13 P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button")) 14 P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button")) 15 P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button")) 16 P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button")) 17 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button")) 18 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button")) 19 14 20 15 21 if (P.getIndexOfLastFinishedMission() == orxonox.LevelManager:getInstance():getNumberOfCampaignMissions() - 1) then … … 54 60 end 55 61 56 function P.Mission OneButton_clicked(e)62 function P.Mission1Button_clicked(e) 57 63 P.loadLevel(P.FindLevel(0)) 58 64 end 59 65 60 function P.Mission TwoButton_clicked(e)66 function P.Mission2Button_clicked(e) 61 67 P.loadLevel(P.FindLevel(1)) 62 68 end 63 69 64 function P.Mission ThreeButton_clicked(e)70 function P.Mission3Button_clicked(e) 65 71 P.loadLevel(P.FindLevel(2)) 66 72 end 67 73 68 function P.Mission FourButton_clicked(e)74 function P.Mission4Button_clicked(e) 69 75 P.loadLevel(P.FindLevel(3)) 76 end 77 78 function P.Mission5Button_clicked(e) 79 P.loadLevel(P.FindLevel(4)) 80 end 81 82 function P.Mission6Button_clicked(e) 83 P.loadLevel(P.FindLevel(5)) 84 end 85 86 function P.Mission7Button_clicked(e) 87 P.loadLevel(P.FindLevel(6)) 88 end 89 90 function P.Mission8Button_clicked(e) 91 P.loadLevel(P.FindLevel(7)) 92 end 93 94 function P.Mission9Button_clicked(e) 95 P.loadLevel(P.FindLevel(8)) 70 96 end 71 97 -
code/branches/presentationHS15/data/levels/missionOne.oxw
r10962 r10970 1679 1679 1680 1680 <!-- @Triggers: HACK. The attacktrigger6 Event is created, but does not trigger the Script. 1681 (WTF?) TODO: looks like a BUG 1681 (WTF?) TODO: looks like a BUG 1682 1682 Thus a distanceTrigger is created, that gets enabled, when the inner trigger gets activated. 1683 1683 Due to the large radius it is likely that it actually gets triggered. 1684 1684 --> 1685 1685 1686 <DistanceTrigger name="testDistanceTrigger" position="0,0,0" distance=10000 target=" SpaceShip" stayActive="true" delay=37.0>1686 <DistanceTrigger name="testDistanceTrigger" position="0,0,0" distance=10000 target="Pawn" stayActive="true" delay=37.0> 1687 1687 <EventTrigger name="testEventTrigger" activations="1" stayactive="true" delay=0.1> 1688 1688 <events> -
code/branches/presentationHS15/src/libraries/util/Math.cc
r10630 r10970 161 161 - If the other object is exactly above me, the function returns <tt>Vector2(0, 0.5)</tt>. 162 162 */ 163 orxonox::Vector2 get2DView coordinates(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition)163 orxonox::Vector2 get2DViewCoordinates(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition) 164 164 { 165 165 orxonox::Vector3 distance = otherposition - myposition; -
code/branches/presentationHS15/src/libraries/util/Math.h
r9939 r10970 91 91 _UtilExport float getAngle(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& otherposition); 92 92 _UtilExport orxonox::Vector2 get2DViewdirection(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition); 93 _UtilExport orxonox::Vector2 get2DView coordinates(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition);93 _UtilExport orxonox::Vector2 get2DViewCoordinates(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition); 94 94 _UtilExport orxonox::Vector2 get3DProjection(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition, const float mapangle, const float detectionlimit); 95 95 _UtilExport bool isObjectHigherThanShipOnMap(const orxonox::Vector3& myposition, const orxonox::Vector3& mydirection, const orxonox::Vector3& myorthonormal, const orxonox::Vector3& otherposition, const float mapangle); -
code/branches/presentationHS15/src/modules/docking/DockingController.cc
r9667 r10970 61 61 62 62 float distance = (this->dock_->getWorldPosition() - entity->getPosition()).length(); 63 Vector2 coord = get2DView coordinates( // I don't understand this too63 Vector2 coord = get2DViewCoordinates( // I don't understand this too 64 64 entity->getPosition(), 65 65 entity->getOrientation() * WorldEntity::FRONT, -
code/branches/presentationHS15/src/modules/overlays/hud/HUDRadar.cc
r9945 r10970 240 240 } 241 241 else 242 coord = get2DView coordinates(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition());242 coord = get2DViewCoordinates(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition()); 243 243 244 244 coord *= math::pi / 3.5f; // small adjustment to make it fit the texture -
code/branches/presentationHS15/src/modules/weapons/weaponmodes/MineGun.cc
r10963 r10970 58 58 this->setMunitionName("MineMunition"); 59 59 this->setDefaultSound("sounds/mineactivate.ogg"); 60 61 hudImageString_ = "Orxonox/WSHUD_WM_MineGun"; 60 62 } 61 63 -
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(); -
code/branches/presentationHS15/test/util/MathTest.cc
r9114 r10970 337 337 getAngle 338 338 get2DViewdirection 339 get2DView coordinates339 get2DViewCoordinates 340 340 getPredictedPosition 341 341 */
Note: See TracChangeset
for help on using the changeset viewer.