示例#1
0
/**
 * \brief Returns whether the entity's current position can be considered
 * as a place to come back after a bad ground (hole, deep water, etc).
 *
 * Returns is_touching_ground() by default.
 *
 * \return true if the entity can come back here
 */
bool Entity::State::can_come_from_bad_ground() const {
  return is_touching_ground();
}
示例#2
0
文件: State.cpp 项目: ElAleyo/solarus
/**
 * \brief Returns whether the hero's current position can be considered
 * as a place to come back after a bad ground (hole, deep water, etc).
 *
 * Returns is_touching_ground() by default.
 *
 * \return true if the hero can come back here
 */
bool Hero::State::can_come_from_bad_ground() {
  return is_touching_ground();
}