engine/maps/source/TileUtils.cpp
// The "opposite" tile type really only makes sense for staircase tiles,
// where the opposite of an up staircase is a down staircase, and vice
// versa.  For every other tile type, the opposite is the tile type
// provided as a parameter.
The "opposite" tile type really only makes sense for staircase tiles,
where the opposite of an up staircase is a down staircase, and vice
versa.  For every other tile type, the opposite is the tile type
provided as a parameter.
The " opposite " tile type really only makes sense for staircase tiles where the opposite of an up staircase is a down staircase and vice versa . For every other tile type the opposite is the tile type provided as a parameter .
TileType TileUtils::get_opposite_tile_type(const TileType tt)
{
  if (tt == TileType::TILE_TYPE_UP_STAIRCASE)
  {
    return TileType::TILE_TYPE_DOWN_STAIRCASE;
  }
  else if (tt == TileType::TILE_TYPE_DOWN_STAIRCASE)
  {
    return TileType::TILE_TYPE_UP_STAIRCASE;
  }
  return tt;
}
TileType TileUtils :: get_opposite_tile_type ( const TileType tt ) { if ( tt == TileType :: TILE_TYPE_UP_STAIRCASE ) { return TileType :: TILE_TYPE_DOWN_STAIRCASE ; } else if ( tt == TileType :: TILE_TYPE_DOWN_STAIRCASE ) { return TileType :: TILE_TYPE_UP_STAIRCASE ; } return tt ; }
The "opposite" tile type really only makes sense for staircase tiles,
where the opposite of an up staircase is a down staircase, and vice
versa.
The " opposite " tile type really only makes sense for staircase tiles where the opposite of an up staircase is a down staircase and vice versa .