engine/creatures/source/CreatureTileSafetyChecker.cpp
// Get the safety conditions for a particular tile type

Get the safety conditions for a particular tile type
Get the safety conditions for a particular tile type
vector<ITileSafetyConditionPtr> CreatureTileSafetyChecker::get_safety_conditions(const TileType tile_type)
{
  vector<ITileSafetyConditionPtr> safety_conditions;
  TileTypeSafetyConditionsMap::iterator t_it = tile_type_safety_conditions.find(tile_type);
  if (t_it != tile_type_safety_conditions.end())
  {
    safety_conditions = t_it->second;
  }
  return safety_conditions;
}
vector < ITileSafetyConditionPtr > CreatureTileSafetyChecker :: get_safety_conditions ( const TileType tile_type ) { vector < ITileSafetyConditionPtr > safety_conditions ; TileTypeSafetyConditionsMap :: iterator t_it = tile_type_safety_conditions . find ( tile_type ) ; if ( t_it != tile_type_safety_conditions . end ( ) ) { safety_conditions = t_it -> second ; } return safety_conditions ; }
Get the safety conditions for a particular tile type
Get the safety conditions for a particular tile type