Changeset 8951 for code/branches/gamecontent
- Timestamp:
- Nov 26, 2011, 10:06:08 AM (13 years ago)
- Location:
- code/branches/gamecontent
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/data/levels/missionOne.oxw
r8942 r8951 432 432 433 433 434 <SimpleNotification message="Three redarrows just appeared.">434 <SimpleNotification message="Three arrows just appeared."> 435 435 <events> 436 436 <trigger> … … 441 441 442 442 <DistanceTrigger name="flying5" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=5/> 443 <SimpleNotification message="Follow those redarrows.">443 <SimpleNotification message="Follow those arrows."> 444 444 <events> 445 445 <trigger> … … 510 510 511 511 <!-- @Objects: 4 boxes (uncontrolled pawns) --> 512 <Pawn team=1 health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box > 513 <events> 514 <visibility> 515 <EventListener event="flying4" /> 516 </visibility> 517 </events> 518 <attached> 519 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 520 </attached> 521 <collisionShapes> 522 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 523 </collisionShapes> 524 </Pawn> 525 526 <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true"> 527 <events> 528 <visibility> 529 <EventListener event="flying4" /> 530 </visibility> 531 </events> 532 <attached> 533 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 534 </attached> 535 <collisionShapes> 536 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 537 </collisionShapes> 538 </Pawn> 539 <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1> 540 <events> 541 <visibility> 542 <EventListener event="flying4" /> 543 </visibility> 544 </events> 545 <attached> 546 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 547 </attached> 548 <collisionShapes> 549 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 550 </collisionShapes> 551 </Pawn> 552 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1> 553 <events> 554 <visibility> 555 <EventListener event="flying4" /> 556 </visibility> 557 </events> 558 <attached> 559 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 560 </attached> 561 <collisionShapes> 562 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 563 </collisionShapes> 564 </Pawn> 512 <Pawn team=1 health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 1" > 513 <events> 514 <visibility> 515 <EventListener event="flying4" /> 516 </visibility> 517 </events> 518 <attached> 519 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 520 </attached> 521 <collisionShapes> 522 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 523 </collisionShapes> 524 </Pawn> 525 526 <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 2"> 527 <events> 528 <visibility> 529 <EventListener event="flying4" /> 530 </visibility> 531 </events> 532 <attached> 533 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 534 </attached> 535 <collisionShapes> 536 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 537 </collisionShapes> 538 </Pawn> 539 540 <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 3"> 541 <events> 542 <visibility> 543 <EventListener event="flying4" /> 544 </visibility> 545 </events> 546 <attached> 547 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 548 </attached> 549 <collisionShapes> 550 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 551 </collisionShapes> 552 </Pawn> 553 554 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 RVName = "Box 4"> 555 <events> 556 <visibility> 557 <EventListener event="flying4" /> 558 </visibility> 559 </events> 560 <attached> 561 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> 562 </attached> 563 <collisionShapes> 564 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> 565 </collisionShapes> 566 </Pawn> 565 567 566 568 <!-- @Triggers: boxtrigger1 <-> one box destroyed … … 634 636 635 637 <!-- @Objects: 2 pirates moving in squares, nonlethal --> 636 <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" >638 <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" RVName="Pirate"> 637 639 <events> 638 640 <visibility> … … 655 657 </SpaceShip> 656 658 657 <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget" >659 <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget" RVName="Pirate"> 658 660 <events> 659 661 <visibility> … … 924 926 925 927 926 <SimpleNotification message="Dock to the Hydrogen Farmer." >928 <SimpleNotification message="Dock to the Hydrogen Farmer." broadcast="true"> 927 929 <events> 928 930 <trigger> … … 956 958 </Trigger> 957 959 958 <SimpleNotification message="We just received a message from DuBall." >960 <SimpleNotification message="We just received a message from DuBall." broadcast="true"> 959 961 <events> 960 962 <trigger> … … 965 967 966 968 967 <SimpleNotification message="We will lend you our strongest ship." >969 <SimpleNotification message="We will lend you our strongest ship." broadcast="true"> 968 970 <events> 969 971 <trigger> … … 976 978 <!-- @Objects: HYDROGEN FARMER & DOCKING --> 977 979 <SpaceShip 978 team=0 979 position="-48900,100,0" 980 roll=90 yaw=0 pitch=20 981 mass=10000 982 health=100000 initialhealth=100000 maxhealth="100000" 983 name="HydroFarmer"> 980 team = 0 981 position = "-48900,100,0" 982 roll = 90 yaw=0 pitch=20 983 mass = 10000 984 health = 100000 initialhealth=100000 maxhealth="100000" 985 name = "HydroFarmer" 986 RVName = "Hydrogen Farmer" > 984 987 <attached> 985 988 <!-- Docking --> … … 1063 1066 reloadrate = "1" 1064 1067 reloadwaittime = "1" 1065 name = "cruiser" > 1068 name = "cruiser" 1069 RVName = "Spacecruiser" > 1066 1070 <attached> 1067 1071 <DockingTarget name="spaceShip" /> -
code/branches/gamecontent/src/orxonox/controllers/ArtificialController.h
r8891 r8951 51 51 void abandonTarget(Pawn* target); 52 52 53 inline void setTeam(int team) 53 inline void setTeam(int team) //TODO: write through to controllable entity. 54 54 { this->team_ = team; } 55 55 inline int getTeam() const -
code/branches/gamecontent/src/orxonox/gametypes/TeamGametype.cc
r8942 r8951 59 59 static ColourValue colours[] = 60 60 { 61 ColourValue( 1.0f, 0.3f, 0.3f),62 ColourValue( 0.3f, 0.3f, 1.0f),61 ColourValue(0.2f, 0.2f, 1.0f), 62 ColourValue(1.0f, 0.1f, 0.1f), 63 63 ColourValue(0.3f, 1.0f, 0.3f), 64 ColourValue(1.0f, 1.0f, 0.0f) 64 ColourValue(1.0f, 1.0f, 0.0f), 65 ColourValue(0.0f, 1.0f, 1.0f), 66 ColourValue(1.0f, 0.0f, 1.0f), 67 ColourValue(7.0f, 7.0f, 7.0f), 68 ColourValue(2.0f, 2.0f, 2.0f) 65 69 }; 66 70 static std::vector<ColourValue> defaultcolours(colours, colours + sizeof(colours) / sizeof(ColourValue)); -
code/branches/gamecontent/src/orxonox/interfaces/CMakeLists.txt
r8942 r8951 6 6 PickupListener.cc 7 7 RadarViewable.cc 8 PartyMember.cc9 8 ) -
code/branches/gamecontent/src/orxonox/worldentities/ControllableEntity.cc
r8923 r8951 87 87 this->setPriority( Priority::VeryHigh ); 88 88 this->registerVariables(); 89 this->team_ = -1; 89 90 } 90 91 … … 119 120 SUPER(ControllableEntity, XMLPort, xmlelement, mode); 120 121 122 XMLPortParam(ControllableEntity, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1); 121 123 XMLPortParam(ControllableEntity, "hudtemplate", setHudTemplate, getHudTemplate, xmlelement, mode); 122 124 XMLPortParam(ControllableEntity, "camerapositiontemplate", setCameraPositionTemplate, getCameraPositionTemplate, xmlelement, mode); -
code/branches/gamecontent/src/orxonox/worldentities/ControllableEntity.h
r8923 r8951 163 163 { return this->target_.get(); } 164 164 void setTargetInternal( uint32_t targetID ); 165 166 inline void setTeam(int team) 167 { this->team_ = team; } 168 inline float getTeam() const 169 { return this->team_; } 165 170 166 171 protected: … … 237 242 CameraPosition* reverseCamera_; 238 243 WeakPtr<WorldEntity> target_; 244 245 int team_ ; //<! teamnumber 239 246 }; 240 247 } -
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.cc
r8942 r8951 60 60 this->bReload_ = false; 61 61 62 this->team_ = -1;63 62 this->health_ = 0; 64 63 this->maxHealth_ = 0; … … 110 109 { 111 110 SUPER(Pawn, XMLPort, xmlelement, mode); 112 113 XMLPortParam(Pawn, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1);114 111 115 112 XMLPortParam(Pawn, "health", setHealth, getHealth, xmlelement, mode).defaultValues(100); -
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.h
r8942 r8951 35 35 #include "interfaces/PickupCarrier.h" 36 36 #include "interfaces/RadarViewable.h" 37 #include "interfaces/PartyMember.h"38 37 #include "worldentities/ControllableEntity.h" 39 38 … … 41 40 { // tolua_export 42 41 class _OrxonoxExport Pawn // tolua_export 43 : public ControllableEntity, public RadarViewable, public PickupCarrier //, public PartyMember42 : public ControllableEntity, public RadarViewable, public PickupCarrier 44 43 { // tolua_export 45 44 friend class WeaponSystem; … … 55 54 { return this->bAlive_; } 56 55 57 inline void setTeam(int team)58 { this->team_ = team; }59 inline float getTeam() const60 { return this->team_; }61 56 62 57 virtual void setHealth(float health); … … 200 195 { return NULL; } 201 196 202 int team_;203 197 204 198 float health_;
Note: See TracChangeset
for help on using the changeset viewer.