public static MegaTileType getMegaTileType(int typeNum)
{
// find the type
foreach (MegaTileType mtt in megaTileTypes)
{
if (mtt.Number == typeNum)
{
return mtt;
}
}
throw new ApplicationException("XMLSettingsFile.getMegaTileType: Attempted to retrieve undefined Mega Tile type number '" + typeNum + "' ");
}