engine/creatures/source/AirSafetyCondition.cpp
// An air tile is safe only when a creature is flying or incorporeal.
//
// Otherwise, the creature plummets to its death.
An air tile is safe only when a creature is flying or incorporeal.
Otherwise, the creature plummets to its death.
An air tile is safe only when a creature is flying or incorporeal . Otherwise the creature plummets to its death .
bool AirSafetyCondition::is_safe(CreaturePtr creature, TilePtr tile)
{
  bool safe = false;
  if (creature)
  {
    safe = creature->has_status(StatusIdentifiers::STATUS_ID_INCORPOREAL) || 
           creature->has_status(StatusIdentifiers::STATUS_ID_FLYING);
  }
  return safe;
}
bool AirSafetyCondition :: is_safe ( CreaturePtr creature , TilePtr tile ) { bool safe = false ; if ( creature ) { safe = creature -> has_status ( StatusIdentifiers :: STATUS_ID_INCORPOREAL ) || creature -> has_status ( StatusIdentifiers :: STATUS_ID_FLYING ) ; } return safe ; }
An air tile is safe only when a creature is flying or incorporeal.
An air tile is safe only when a creature is flying or incorporeal .