Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 /*public AttackCommand(List<Vector2> wayPoints, RtsObject target)
     : base(wayPoints, 1)
 {
     this.target = target;
 }*/
 public AttackCommand(RtsObject target)
     : base(target.CenterPoint, 1)
 {
     this.target = target;
 }
Example #4
0
 /*public AttackCommand(List<Vector2> wayPoints, RtsObject target)
  *  : base(wayPoints, 1)
  * {
  *  this.target = target;
  * }*/
 public AttackCommand(RtsObject target)
     : base(target.CenterPoint, 1)
 {
     this.target = target;
 }