public RtsBullet(Unit shooter, RtsObject target, Vector2 position, int size, float speed) : base(new Rectangle(0, 0, size, size), new Vector2(speed, speed)) { this.shooter = shooter; this.target = target; CenterPoint = position; RtsBullets.Add(this); }
/*public AttackCommand(List<Vector2> wayPoints, RtsObject target) : base(wayPoints, 1) { this.target = target; }*/ public AttackCommand(RtsObject target) : base(target.CenterPoint, 1) { this.target = target; }
/*public AttackCommand(List<Vector2> wayPoints, RtsObject target) * : base(wayPoints, 1) * { * this.target = target; * }*/ public AttackCommand(RtsObject target) : base(target.CenterPoint, 1) { this.target = target; }