package {
	import com.netgrind.core.UtilsArt;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author netgrind
	 */
	public class CharacterManager {
		
		[Embed(source = "../lib/characters/nicole_sprite.png")]public static var spriteNicole:Class;
		[Embed(source = "../lib/characters/anais_sprite.png")]public static var spriteAnais:Class;
		[Embed(source = "../lib/characters/gumball_sprite.png")]public static var spriteGumball:Class;
		[Embed(source = "../lib/characters/darwin_sprite.png")]public static var spriteDarwin:Class;
		[Embed(source = "../lib/characters/tobias_sprite.png")]public static var spriteTobais:Class;
		[Embed(source = "../lib/characters/larry_sprite.png")]public static var spriteLarry:Class;
		
		public static const characters:int = 6;
		
		public static const NICOLE:int = 0;
		public static const ANAIS:int = 1;
		public static const GUMBALL:int = 2;
		public static const DARWIN:int = 3;
		public static const TOBAIS:int = 4;
		public static const LARRY:int = 5;
		
		public static var sprites:Array = [spriteNicole, spriteAnais, spriteGumball, spriteDarwin, spriteTobais, spriteLarry];
		public static var faceSizes:Array = [147,159,142,159,147,133,116];
		
		public static function getFace(char:int):FaceSprite {
			if (sprites[char] is Class) {
				//sprites[char] = ;
			}
			return  new FaceSprite(new sprites[char](), faceSizes[char]);
		}
		
		static public function setup():void {
			for (var i:int = 0; i < characters; i++) {
				new Character(i);
			}
		}
		
	}
	
}