Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2008, 3:58:01 PM (16 years ago)
Author:
bhildebr
Message:

Completed code for class Scoreboard and fixed some compiler and linker errors

Location:
code/branches/overlay/src/orxonox/objects/gametypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/overlay/src/orxonox/objects/gametypes/Gametype.cc

    r2181 r2320  
    4040#include "objects/worldentities/pawns/Spectator.h"
    4141#include "objects/worldentities/SpawnPoint.h"
     42#include "Settings.h"
    4243
    4344#include "network/Host.h"
     
    6768
    6869        // load the corresponding score board
    69         statsOverlay_ = new XMLFile(Settings::getDataPath() + "overlay/" + this->statsOverlayName_);
     70        this->statsOverlay_ = new XMLFile(Settings::getDataPath() + "overlay/" + this->statsOverlayName_);
    7071        Loader::open(statsOverlay_);
     72        this->setGametype(this);
    7173    }
    7274
  • code/branches/overlay/src/orxonox/objects/gametypes/Gametype.h

    r2181 r2320  
    8282                { return this->startCountdown_; }
    8383
     84            inline unsigned int getNumberOfPlayers() const
     85                { return this->players_.size(); }
     86
     87            inline std::string getPlayersName() const
     88                { return "StatsBot77"; }
     89
     90            inline unsigned int getPlayersFrags() const
     91                { return 123; }
     92
    8493        private:
    8594            void setConfigValues();
Note: See TracChangeset for help on using the changeset viewer.