Example #1
0
/**
 * \brief Returns whether this treasure is saved.
 * \return true if this treasure is saved.
 */
bool Treasure::is_saved() const {
  return !get_savegame_variable().empty();
}
Example #2
0
/**
 * @brief Returns whether the state of this door is saved.
 * @return \c true if this door is saved.
 */
bool Door::is_saved() const {
  return !get_savegame_variable().empty();
}