package ggj2014BsAs.grupoJ.datos 
{
	/**
	 * ...
	 * @author Damián Flores
	 */
	public class LIndicesColoresBaldosas
	{
		public static const VACIO		:int = 0;
		public static const BORDE		:int = 1;
		public static const NEGRO_NC	:int = 2;
		public static const NEGRO_C		:int = 3;
		public static const ROJO_NC		:int = 4;
		public static const ROJO_C		:int = 5;
		public static const AMARILLO_NC	:int = 6;
		public static const AMARILLO_C	:int = 7;
		public static const VERDE_NC	:int = 8;
		public static const VERDE_C		:int = 9;
		public static const CYAN_NC		:int = 10;
		public static const CYAN_C		:int = 11;
		public static const AZUL_NC		:int = 12;
		public static const AZUL_C		:int = 13;
		public static const MAGENTA_NC	:int = 14;
		public static const MAGENTA_C	:int = 15;
		
		///Para negro, poner color -1
		public static function obtenerIndice(color:int, colisionable:Boolean):int
		{
			return (color + 2) * 2 + int(colisionable);
		}
	}
}