示例#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);
 }
示例#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);
 }
示例#3
0
文件: Unit.cs 项目: nubington/bill
 /*public AttackCommand(List<Vector2> wayPoints, RtsObject target)
     : base(wayPoints, 1)
 {
     this.target = target;
 }*/
 public AttackCommand(RtsObject target)
     : base(target.CenterPoint, 1)
 {
     this.target = target;
 }
示例#4
0
文件: Unit.cs 项目: nubington/bill
 /*public AttackCommand(List<Vector2> wayPoints, RtsObject target)
  *  : base(wayPoints, 1)
  * {
  *  this.target = target;
  * }*/
 public AttackCommand(RtsObject target)
     : base(target.CenterPoint, 1)
 {
     this.target = target;
 }