package game.GameMain.Mobs
{
	import flash.display.Bitmap;
	import flash.geom.Point;
	import flinjin.graphics.Sprite;
	import game.GameMain.LevelScroll;
	import game.GameMain.TileLevel;
	
	/**
	 * ...
	 * @author Michael Miriti <m.s.miriti@gmail.com>
	 */
	public class Mob extends Sprite
	{
		
		protected function movePoint(srcPoint:Point, dstPoint:Point):void
		{
			dstPoint.copyFrom(srcPoint);
			
			if ((_parentSprite != null) && (_parentSprite.parent != null) && (_parentSprite.parent is TileLevel))
			{
				var _b:LevelScroll = (_parentSprite.parent as TileLevel).LevelLayer;
				
				var _startX:int = Math.floor(srcPoint.x);
				var _startY:int = Math.floor(srcPoint.y);
				var _endX:int = Math.floor(dstPoint.x);
				var _endY:int = Math.floor(dstPoint.y);
				var _dx:int = _endX - _startX;
				var _dy:int = _endY - _startY;
				var _dirX:int = _dx < 0 ? -1 : 1;
				var _dirY:int = _dy < 0 ? -1 : 1;
				var _cntX:int = _startX;
				var _cntY:int = _startY;
				
				if (Math.abs(_dy) > Math.abs(_dx))
				{
					
				}
				else
				{
					
					
					
				}
			}
		}
		
		public function Mob(spriteBmp:Bitmap, rotationCenter:Point = null, animated:Boolean = false, frameWidth:uint = 0, frameHeight:uint = 0, frameRate:Number = 1)
		{
			super(spriteBmp, rotationCenter, animated, frameWidth, frameHeight, frameRate);
		
		}
	
	}

}