package Game{
	public class GhostSpeedy extends Ghost{
		override public function makeTarget():void{
			switch (Mode){
				case 0: // HOME
				break;
				
				case 1: // CHASE
					switch(pm.Direction){
						case 1:
							TargetPoint.x = Math.floor(pm.x / 8) - 4;
							TargetPoint.y = Math.floor(pm.y / 8);
						break;
						
						case 2:
							TargetPoint.x = Math.floor(pm.x / 8) + 4;
							TargetPoint.y = Math.floor(pm.y / 8);
						break;
						
						case 3:
							TargetPoint.x = Math.floor(pm.x / 8);
							TargetPoint.y = Math.floor(pm.y / 8) - 4;
						break;
						
						case 4:
							TargetPoint.x = Math.floor(pm.x / 8);
							TargetPoint.y = Math.floor(pm.y / 8) + 4;
						break;
					}
				break;
				
				case 2: // SCATTER
					TargetPoint.x = 0;
					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;
			}			
		}
	}
}