package Game.Objects.Bullets
{
	import flash.geom.Matrix;
	import Engine.GameSprite;
	import flash.display.BitmapData;
	import flash.geom.Point;
	import Game.LibGraphics;
	
	/**
	 * ...
	 * @author ...
	 */
	public class SimpleBullet extends GameSprite
	{
		private var _outside:Boolean = false;
		private var BULLET_SPEED:uint = 20;
		
		override public function get outside():Boolean
		{
			return _outside;
		}
		
		override public function set outside(value:Boolean):void
		{
			_outside = value;
			if (_outside) {
				Delete = true;
			}
		}
		
		override public function Move():void
		{
			x += Math.cos(rotation) * BULLET_SPEED;
			y += Math.sin(rotation) * BULLET_SPEED;
		}
		
		public function SimpleBullet()
		{
			super(new LibGraphics.Bullet1(), new Point(0, 4));
			CollisionEnabled = true;
		}
		
	}

}