package Gameplay { import flash.display.InteractiveObject; import flash.display.Shape; import flash.geom.Point; import gs.TweenLite; import Services.LevelService; public class Bullet { public var graphic : Shape; public var tween : TweenLite; public var penetration : int; public var endPoint : Point; public var lifeTime : int; public var weapon : Weapon; public var hit : Boolean = false; // Used for stat tracking //Services private var level : LevelService = SystemController.getInstance().levelService; public function Bullet(gun : Weapon, shape : Shape, tweenP : TweenLite, target : Point) { weapon = gun; graphic = shape; penetration = gun.penetration; lifeTime = gun.range * 20; tween = tweenP; endPoint = target; } public function teardown() : void { level.widget.removeChild(this.graphic); } } }