Changeset 12067
- Timestamp:
- Oct 31, 2018, 11:27:04 AM (6 years ago)
- Location:
- code/branches/wagnis_HS18
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/wagnis_HS18/data/levels/Wagnis.oxw
r12052 r12067 12 12 ?> 13 13 14 <?lua 15 include("templates/spaceshipEscort.oxt") 16 ?> 17 14 <!-- 18 15 <Template name=pongbatcameras defaults=0> 19 16 <PongBat> … … 31 28 <attached> 32 29 <Model position="0,0,3" mesh="cube.mesh" scale3D="14,2,2" /> 33 < !--Model roll=180 mesh="pongbat.mesh" scale=0.045 /-->30 <-Model roll=180 mesh="pongbat.mesh" scale=0.045 /-> 34 31 </attached> 35 32 </PongBat> 36 </Template> 33 </Template> --> 37 34 38 <Level> 39 gametype = 35 36 <Level plugins="wagnis" gametype="Deathmatch"> 40 37 <templates> 41 38 <Template link=lodtemplate_default /> … … 51 48 <SpawnPoint position="100, 45, 75" lookat="0, 45, 75" /> 52 49 50 <WagnisGameboard position="0,0,0"> 51 <Provinces> 52 <WagnisProvince ID="1" continent="1" position="0,30,30" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 53 <attached> 54 <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" /> 55 </attached> 56 </WagnisProvince> 57 58 <WagnisProvince ID="2" continent="1" position="0,40,30" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 59 <attached> 60 <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" /> 61 </attached> 62 </WagnisProvince> 53 63 54 64 55 65 56 <MovableEntity position="0,0,0" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 66 67 68 </Provinces> 69 </WagnisGameboard> 70 71 <!--> 72 <WagnisProvince ID="1" continent="1" position="0,30,30" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 57 73 <attached> 58 74 <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" /> 59 75 </attached> 60 </MovableEntity>76 </WagnisProvince> 61 77 62 <MovableEntity position="0,0,10" rotationrate="26" rotationaxis="0,2,1">78 <WagnisProvince ID="1" continent="1" position="0,43,33" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 63 79 <attached> 64 <Model position="0,0,0" mesh="ast2.mesh" scale3D="2,2,2" />80 <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" /> 65 81 </attached> 66 </MovableEntity>82 </WagnisProvince> 67 83 68 <MovableEntity position="0,10,0" rotationrate="44" rotationaxis="3,1,1">84 <WagnisProvince ID="1" continent="1" position="0,22,28" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 69 85 <attached> 70 <Model position="0,0,0" mesh="ast3.mesh" scale3D="2,2,2" />86 <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" /> 71 87 </attached> 72 </MovableEntity>88 </WagnisProvince> 73 89 74 <MovableEntity position="0,10,10" rotationrate="10" rotationaxis="2,9,1">90 <WagnisProvince ID="1" continent="1" position="0,41,22" rotationrate="<?lua print(math.random() * 50) ?>" rotationaxis="<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>,<?lua print((math.random()-1)*5)?>"> 75 91 <attached> 76 <Model position="0,0,0" mesh="ast4.mesh" scale3D="2,2,2" />92 <Model position="0,0,0" mesh="ast1.mesh" scale3D="2,2,2" /> 77 93 </attached> 78 </MovableEntity> 79 80 <MovableEntity position="0,20,10" rotationrate="20" rotationaxis="5,2,1"> 81 <attached> 82 <Model position="0,0,0" mesh="ast5.mesh" scale3D="2,2,2" /> 83 </attached> 84 </MovableEntity> 94 </WagnisProvince> 95 --> 85 96 86 97 <Model position="0,0,0" mesh="Coordinates.mesh" scale="20"/> 87 88 98 89 99 -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisGameboard.cc
r12051 r12067 1 2 3 4 5 6 7 1 #include "WagnisGameboard.h" 8 2 #include "core/CoreIncludes.h" … … 29 23 //XML Port 30 24 void WagnisGameboard::XMLPort(Element& xmlelement,XMLPort::Mode mode){ 25 SUPER(WagnisGameboard, XMLPort, xmlelement, mode); 31 26 32 XMLPortObject(WagnisGameboard, WagnisProvince, "Province ", addProvince, getProvince, xmlelement, mode);27 XMLPortObject(WagnisGameboard, WagnisProvince, "Provinces", addProvince, getProvince, xmlelement, mode); 33 28 } 34 29 //XML add province 35 30 //Adds a Province to the Gameboard 36 31 void WagnisGameboard::addProvince(WagnisProvince* province){ 32 orxout() << "added" << endl; 33 orxout() << province->getID() << endl; 37 34 this->provs.push_back(province); 38 35 } -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.cc
r12051 r12067 1 2 3 4 5 6 7 1 #include "WagnisProvince.h" 8 2 #include "core/CoreIncludes.h" … … 30 24 //XML Port 31 25 void WagnisProvince::XMLPort(Element& xmlelement,XMLPort::Mode mode){ 26 SUPER(WagnisProvince, XMLPort, xmlelement, mode); 27 32 28 XMLPortParam(WagnisProvince, "ID", setID, getID, xmlelement, mode); 33 29 XMLPortParam(WagnisProvince, "continent", setContinent, getContinent, xmlelement, mode); -
code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h
r12051 r12067 7 7 #define Wagnis_Province_h 8 8 9 #include " OrxonoxPrereqs.h"9 #include "WagnisPrereqs.h" 10 10 #include "core/CoreIncludes.h" 11 11 #include "core/XMLPort.h" … … 16 16 namespace orxonox 17 17 { 18 class WagnisProvince : public MovableEntity18 class _WagnisExport WagnisProvince : public MovableEntity 19 19 { 20 20 public:
Note: See TracChangeset
for help on using the changeset viewer.