Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 8:32:10 PM (17 years ago)
Author:
landauf
Message:
  • adopted quest classes to the new hierarchy (with a creator pointer)
  • added "RegisterObject(…)" in all constructors and "virtual" to all destructors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/quest/GlobalQuest.cc

    r2091 r2092  
    4040        Constructor.
    4141    */
    42     GlobalQuest::GlobalQuest() : Quest()
     42    GlobalQuest::GlobalQuest(BaseObject* creator) : Quest(creator)
    4343    {
     44        RegisterObject(GlobalQuest);
     45
    4446        this->initialize();
    4547    }
    46    
     48
    4749    /**
    4850    @brief
     
    5153    GlobalQuest::~GlobalQuest()
    5254    {
    53        
     55
    5456    }
    55    
     57
    5658    void GlobalQuest::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    5759    {
     
    6062        COUT(3) << "New GlobalQuest {" << this->getId() << "} created." << std::endl;
    6163    }
    62    
     64
    6365    void GlobalQuest::initialize(void)
    6466    {
    6567        RegisterObject(GlobalQuest);
    6668    }
    67    
     69
    6870    /**
    6971    @brief
     
    8082        return this->isInactive(player) ||  this->isActive(player);
    8183    }
    82    
     84
    8385    /**
    8486    @brief
     
    9698
    9799    }
    98    
     100
    99101    /**
    100102    @brief
     
    126128            ThrowException(Argument, "The input Player* is NULL.");
    127129        }
    128        
     130
    129131        //TDO: Does this really work???
    130132        std::set<Player*>::const_iterator it = this->players_.find((Player*)(void*)player);
     
    139141
    140142    }
    141    
     143
    142144    /**
    143145    @brief
     
    157159            return false;
    158160        }
    159        
     161
    160162        std::set<Player*>::const_iterator it = this->players_.find(player);
    161163        if (it == this->players_.end()) //!< Player is not yet in the list.
Note: See TracChangeset for help on using the changeset viewer.