package Game{
	public class GhostShadow extends Ghost{
		function GhostShadow(){
			this.name = 'Shadow';
		}
		override public function makeTarget():void{
			switch (Mode){
				case 0: // HOME
				break;
				
				case 1: // CHASE
					TargetPoint.x = Math.floor(pm.x / 8);
					TargetPoint.y = Math.floor(pm.y / 8);
				break;
				
				case 2: // SCATTER
					TargetPoint.x = (parent as Level).Map.Fields.length;
					TargetPoint.y = 0;
				break;
				
				case 3: // FRIGHTENED
				break;
				
				case 4: // RUNAWAY
					TargetPoint.x = (parent as Level).Map.GhostHouse.x;
					TargetPoint.y = (parent as Level).Map.GhostHouse.y;
				break;
			}			
		}
	}
}