コード例 #1
0
ファイル: Treasure.cpp プロジェクト: Umigatsu/solarus
/**
 * \brief Returns whether this treasure is saved.
 * \return true if this treasure is saved.
 */
bool Treasure::is_saved() const {
  return !get_savegame_variable().empty();
}
コード例 #2
0
ファイル: Door.cpp プロジェクト: lambdaloop/solarus
/**
 * @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();
}