Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2008, 8:34:59 AM (16 years ago)
Author:
dafrick
Message:

Some minor adjustements, just comitting to be on the safe side.

File:
1 edited

Legend:

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

    r2021 r2043  
    7272        Returns true if the quest can be started, false if not.
    7373    */
    74     bool LocalQuest::isStartable(Player* player)
     74    bool LocalQuest::isStartable(const Player* player) const
    7575    {
    7676        return this->isInactive(player);
     
    8585        Returns true if the quest can be failed, false if not.
    8686    */
    87     bool LocalQuest::isFailable(Player* player)
     87    bool LocalQuest::isFailable(const Player* player) const
    8888    {
    8989        return this->isActive(player);
     
    9898        Returns true if the quest can be completed, false if not.
    9999    */
    100     bool LocalQuest::isCompletable(Player* player)
     100    bool LocalQuest::isCompletable(const Player* player) const
    101101    {
    102102        return this->isActive(player);
     
    111111        Returns the status of the quest for the input player.
    112112    */
    113     questStatus::Enum LocalQuest::getStatus(const Player* player)
     113    questStatus::Enum LocalQuest::getStatus(const Player* player) const
    114114    {
    115115        std::map<Player*, questStatus::Enum>::const_iterator it = this->playerStatus_.find((Player*)(void*)player); //Thx. to x3n for the (Player*)(void*) 'hack'.
Note: See TracChangeset for help on using the changeset viewer.