Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 8:31:20 PM (16 years ago)
Author:
dafrick
Message:

Nearly compiles, some minor improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem/src/orxonox/objects/Quest.cc

    r1996 r2021  
    2828
    2929#include "core/CoreIncludes.h"
     30
    3031#include "Quest.h"
    3132
    3233namespace orxonox {
    3334
    34     CreateFactory(Quest);
     35    Quest::Quest() : QuestItem()
     36    {
     37       
     38    }
    3539
    3640    /**
     
    4448        The description of the quest.
    4549    */
    46     Quest::Quest(std::string id, std::string title = "", std::string description = "") : QuestItem(id, title, description)
     50    Quest::Quest(std::string id, std::string title, std::string description) : QuestItem(id, title, description)
    4751    {
    4852        initialize();
     
    7579        A pointer to the quest to be set as parent quest.
    7680    */
    77     bool setParentQuest(Quest* quest)
     81    bool Quest::setParentQuest(Quest* quest)
    7882    {
    7983        this->parentQuest_ = quest;
     
    8791        A pointer to the quest to be set as sub quest.
    8892    */
    89     bool addSubQuest(Quest & quest)
     93    bool Quest::addSubQuest(Quest* quest)
    9094    {
    91         this->subQuests_.push_back = quest;
     95        this->subQuests_.push_back(quest);
    9296        return true;
    9397    }
     
    99103        The hint that should be added to the list of hints.
    100104    */
    101     void Quest::addHint(QuestHint & hint)
     105    void Quest::addHint(QuestHint* hint)
    102106    {
    103107        if ( hint != NULL )
    104108        {
    105109            this->hints_.push_back(hint);
    106             hint.setQuest(this);
     110            hint->setQuest(this);
    107111        }
    108112        else
     
    120124        Returns true if the quest could be started, false if not.
    121125    */
    122     bool Quest::start(const Player & player)
     126    bool Quest::start(Player* player)
    123127    {
    124128        if(this->isStartable(player))
     
    139143        Returns true if the quest could be failed, false if not.
    140144    */
    141     void Quest::fail(Player & player)
     145    bool Quest::fail(Player* player)
    142146    {
    143147        if(this->isFailable(player))
     
    159163        Returns true if the quest could be completed, false if not.
    160164    */
    161     void Quest::complete(Player & player)
     165    bool Quest::complete(Player* player)
    162166    {
    163167        if(this->isCompletable(player))
Note: See TracChangeset for help on using the changeset viewer.