Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 31, 2018, 11:27:04 AM (6 years ago)
Author:
kunzro
Message:

XML and CMake updated, Gameboard is working

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 
    71#include "WagnisGameboard.h"
    82#include "core/CoreIncludes.h"
     
    2923    //XML Port
    3024    void WagnisGameboard::XMLPort(Element& xmlelement,XMLPort::Mode mode){
     25        SUPER(WagnisGameboard, XMLPort, xmlelement, mode);
    3126
    32         XMLPortObject(WagnisGameboard, WagnisProvince, "Province", addProvince, getProvince, xmlelement, mode);
     27        XMLPortObject(WagnisGameboard, WagnisProvince, "Provinces", addProvince, getProvince, xmlelement, mode);
    3328    }
    3429    //XML add province
    3530    //Adds a Province to the Gameboard
    3631    void WagnisGameboard::addProvince(WagnisProvince* province){
     32        orxout() << "added" << endl;
     33        orxout() << province->getID() << endl;
    3734        this->provs.push_back(province);
    3835    }
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.cc

    r12051 r12067  
    1 
    2 
    3 
    4 
    5 
    6 
    71#include "WagnisProvince.h"
    82#include "core/CoreIncludes.h"
     
    3024    //XML Port
    3125    void WagnisProvince::XMLPort(Element& xmlelement,XMLPort::Mode mode){
     26        SUPER(WagnisProvince, XMLPort, xmlelement, mode);
     27
    3228        XMLPortParam(WagnisProvince, "ID", setID, getID, xmlelement, mode);
    3329        XMLPortParam(WagnisProvince, "continent", setContinent, getContinent, xmlelement, mode);
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisProvince.h

    r12051 r12067  
    77#define Wagnis_Province_h
    88
    9 #include "OrxonoxPrereqs.h"
     9#include "WagnisPrereqs.h"
    1010#include "core/CoreIncludes.h"
    1111#include "core/XMLPort.h"
     
    1616namespace orxonox
    1717{
    18     class WagnisProvince : public MovableEntity
     18    class _WagnisExport WagnisProvince : public MovableEntity
    1919    {
    2020    public:
Note: See TracChangeset for help on using the changeset viewer.