コード例 #1
0
 /// <summary>
 /// Constructor for planetary targets.
 /// </summary>
 /// <param name="BodyTarget">Body which is the target</param>
 public TargetTN(Planet BodyTarget)
 {
     Id         = Guid.NewGuid();
     TargetType = BodyTarget.SSEntity;
     Body       = BodyTarget;
 }
コード例 #2
0
 /// <summary>
 /// Constructor for population targets.
 /// </summary>
 /// <param name="PopTarget">Population that is targeted.</param>
 public TargetTN(Population PopTarget)
 {
     Id         = Guid.NewGuid();
     TargetType = StarSystemEntityType.Population;
     Pop        = PopTarget;
 }
コード例 #3
0
 /// <summary>
 /// Constructor for Missile group targets.
 /// </summary>
 /// <param name="OGTarget">missile targeted on.</param>
 public TargetTN(OrdnanceGroupTN OGTarget)
 {
     Id           = Guid.NewGuid();
     TargetType   = OGTarget.SSEntity;
     MissileGroup = OGTarget;
 }
コード例 #4
0
 /// <summary>
 /// Constructor for ship targets.
 /// </summary>
 /// <param name="ShipTarget">Ship that will be the target</param>
 public TargetTN(ShipTN ShipTarget)
 {
     Id         = Guid.NewGuid();
     TargetType = ShipTarget.ShipsTaskGroup.SSEntity;
     Ship       = ShipTarget;
 }
コード例 #5
0
ファイル: TargetTN.cs プロジェクト: EterniaLogic/Pulsar4x
 /// <summary>
 /// Constructor for population targets.
 /// </summary>
 /// <param name="PopTarget">Population that is targeted.</param>
 public TargetTN(Population PopTarget)
     : base()
 {
     TargetType = StarSystemEntityType.Population;
     Pop = PopTarget;
 }
コード例 #6
0
 /// <summary>
 /// Constructor for Waypoint targets.
 /// </summary>
 /// <param name="WPTarget">waypoint to be targeted.</param>
 public TargetTN(Waypoint WPTarget)
 {
     Id         = Guid.NewGuid();
     TargetType = WPTarget.SSEntity;
     WP         = WPTarget;
 }
コード例 #7
0
ファイル: TargetTN.cs プロジェクト: EterniaLogic/Pulsar4x
 /// <summary>
 /// Constructor for ship targets.
 /// </summary>
 /// <param name="ShipTarget">Ship that will be the target</param>
 public TargetTN(ShipTN ShipTarget)
     : base()
 {
     TargetType = ShipTarget.ShipsTaskGroup.SSEntity;
     Ship = ShipTarget;
 }
コード例 #8
0
ファイル: TargetTN.cs プロジェクト: EterniaLogic/Pulsar4x
 /// <summary>
 /// Constructor for planetary targets.
 /// </summary>
 /// <param name="BodyTarget">Body which is the target</param>
 public TargetTN(SystemBody BodyTarget)
     : base()
 {
     TargetType = BodyTarget.SSEntity;
     Body = BodyTarget;
 }
コード例 #9
0
ファイル: TargetTN.cs プロジェクト: EterniaLogic/Pulsar4x
 /// <summary>
 /// Constructor for Waypoint targets.
 /// </summary>
 /// <param name="WPTarget">waypoint to be targeted.</param>
 public TargetTN(Waypoint WPTarget)
     : base()
 {
     TargetType = WPTarget.SSEntity;
     WP = WPTarget;
 }
コード例 #10
0
ファイル: TargetTN.cs プロジェクト: EterniaLogic/Pulsar4x
 /// <summary>
 /// Constructor for Missile group targets.
 /// </summary>
 /// <param name="OGTarget">missile targeted on.</param>
 public TargetTN(OrdnanceGroupTN OGTarget)
     : base()
 {
     TargetType = OGTarget.SSEntity;
     MissileGroup = OGTarget;
 }
コード例 #11
0
ファイル: TargetTN.cs プロジェクト: txe/Pulsar4x
 /// <summary>
 /// Constructor for population targets.
 /// </summary>
 /// <param name="PopTarget">Population that is targeted.</param>
 public TargetTN(Population PopTarget)
     : base()
 {
     TargetType = StarSystemEntityType.Population;
     Pop        = PopTarget;
 }
コード例 #12
0
ファイル: TargetTN.cs プロジェクト: txe/Pulsar4x
 /// <summary>
 /// Constructor for planetary targets.
 /// </summary>
 /// <param name="BodyTarget">Body which is the target</param>
 public TargetTN(SystemBody BodyTarget)
     : base()
 {
     TargetType = BodyTarget.SSEntity;
     Body       = BodyTarget;
 }
コード例 #13
0
ファイル: TargetTN.cs プロジェクト: txe/Pulsar4x
 /// <summary>
 /// Constructor for ship targets.
 /// </summary>
 /// <param name="ShipTarget">Ship that will be the target</param>
 public TargetTN(ShipTN ShipTarget)
     : base()
 {
     TargetType = ShipTarget.ShipsTaskGroup.SSEntity;
     Ship       = ShipTarget;
 }
コード例 #14
0
ファイル: TargetTN.cs プロジェクト: txe/Pulsar4x
 /// <summary>
 /// Constructor for Missile group targets.
 /// </summary>
 /// <param name="OGTarget">missile targeted on.</param>
 public TargetTN(OrdnanceGroupTN OGTarget)
     : base()
 {
     TargetType   = OGTarget.SSEntity;
     MissileGroup = OGTarget;
 }
コード例 #15
0
ファイル: TargetTN.cs プロジェクト: txe/Pulsar4x
 /// <summary>
 /// Constructor for Waypoint targets.
 /// </summary>
 /// <param name="WPTarget">waypoint to be targeted.</param>
 public TargetTN(Waypoint WPTarget)
     : base()
 {
     TargetType = WPTarget.SSEntity;
     WP         = WPTarget;
 }