/// <summary> /// Outpost constructor /// </summary> /// <param name="outpostStartPosition">The position of the outpost</param> public Outpost(string id, RftVector outpostStartPosition) { this._id = id; this.Position = outpostStartPosition; _subLauncher = new SubLauncher(); this._outpostOwner = null; this._specialistManager = new SpecialistManager(100); _shieldManager = new ShieldManager(10); }
/// <summary> /// Outpost constructor /// </summary> /// <param name="outpostStartPosition">The outpost position</param> /// <param name="outpostOwner">The outpost's owner</param> /// <param name="type">The type of outpost to create</param> public Outpost(string id, RftVector outpostStartPosition, Player outpostOwner, OutpostType type) { this._id = id; this.Position = outpostStartPosition; _subLauncher = outpostOwner == null ? new SubLauncher() : new SubLauncher(40); this._outpostOwner = outpostOwner; this._specialistManager = new SpecialistManager(100); _shieldManager = new ShieldManager(10); this._type = type; }
/// <summary> /// Sub constructor /// </summary> /// <param name="source">The initial location of the sub</param> /// <param name="destination">The destination of the sub</param> /// <param name="launchTime">The time of launch</param> /// <param name="drillerCount">The amount of drillers to launch</param> /// <param name="owner">The owner</param> public Sub(string id, ISubLauncher source, ICombatable destination, GameTick launchTime, int drillerCount, Player owner) : base() { this._id = id; this._source = source; this._destination = destination; this._launchTime = launchTime; this._subLauncher = new SubLauncher(drillerCount); this.StartPosition = source.GetCurrentPosition(launchTime); this._owner = owner; this._specialistManager = new SpecialistManager(3); _shieldManager = new ShieldManager(5); }