Changeset 12067 for code/branches/wagnis_HS18/src/modules/wagnis
- Timestamp:
- Oct 31, 2018, 11:27:04 AM (6 years ago)
- Location:
- code/branches/wagnis_HS18/src/modules/wagnis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.