- Timestamp:
- Oct 29, 2008, 8:34:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/objects/LocalQuest.cc
r2021 r2043 72 72 Returns true if the quest can be started, false if not. 73 73 */ 74 bool LocalQuest::isStartable( Player* player)74 bool LocalQuest::isStartable(const Player* player) const 75 75 { 76 76 return this->isInactive(player); … … 85 85 Returns true if the quest can be failed, false if not. 86 86 */ 87 bool LocalQuest::isFailable( Player* player)87 bool LocalQuest::isFailable(const Player* player) const 88 88 { 89 89 return this->isActive(player); … … 98 98 Returns true if the quest can be completed, false if not. 99 99 */ 100 bool LocalQuest::isCompletable( Player* player)100 bool LocalQuest::isCompletable(const Player* player) const 101 101 { 102 102 return this->isActive(player); … … 111 111 Returns the status of the quest for the input player. 112 112 */ 113 questStatus::Enum LocalQuest::getStatus(const Player* player) 113 questStatus::Enum LocalQuest::getStatus(const Player* player) const 114 114 { 115 115 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.