package
{
	import FlDosBox.FlDosBoxSpecialChars;
	
	/**
	 * ...
	 * @author Michael Miriti
	 */
	public class MapCellFactory
	{
		
		public function MapCellFactory()
		{
		
		}
		
		static public function factory(pixel:uint):MapCell
		{
			switch (pixel)
			{
				case 0x404040:
					return new MapCell(15, 0, 0);
				case 0xffff00:
					return new MapCell(15, 6, 6);
				case 0x808080:
					return new MapCell(FlDosBoxSpecialChars.BLOCK_2, 0, 8);
				default:
					return null;
			}
		}
	
	}

}