/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <summary> /// Constructor for population targets. /// </summary> /// <param name="PopTarget">Population that is targeted.</param> public TargetTN(Population PopTarget) : base() { TargetType = StarSystemEntityType.Population; Pop = PopTarget; }
/// <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; }
/// <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; }
/// <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; }
/// <summary> /// Constructor for Waypoint targets. /// </summary> /// <param name="WPTarget">waypoint to be targeted.</param> public TargetTN(Waypoint WPTarget) : base() { TargetType = WPTarget.SSEntity; WP = WPTarget; }
/// <summary> /// Constructor for Missile group targets. /// </summary> /// <param name="OGTarget">missile targeted on.</param> public TargetTN(OrdnanceGroupTN OGTarget) : base() { TargetType = OGTarget.SSEntity; MissileGroup = OGTarget; }
/// <summary> /// Constructor for population targets. /// </summary> /// <param name="PopTarget">Population that is targeted.</param> public TargetTN(Population PopTarget) : base() { TargetType = StarSystemEntityType.Population; Pop = PopTarget; }
/// <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; }
/// <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; }
/// <summary> /// Constructor for Missile group targets. /// </summary> /// <param name="OGTarget">missile targeted on.</param> public TargetTN(OrdnanceGroupTN OGTarget) : base() { TargetType = OGTarget.SSEntity; MissileGroup = OGTarget; }
/// <summary> /// Constructor for Waypoint targets. /// </summary> /// <param name="WPTarget">waypoint to be targeted.</param> public TargetTN(Waypoint WPTarget) : base() { TargetType = WPTarget.SSEntity; WP = WPTarget; }