public ArmyBuilder(IdGenerator IdGenerator, ArmyParameters Parameters) { Id = IdGenerator.GenerateId(); this.Parameters = Parameters; }
public Army(Match Match, SightFinder SightFinder, ArmyConfiguration ArmyConfiguration, IdGenerator IdGenerator) { _Id = IdGenerator.GenerateId(); this.Match = Match; this.SightFinder = SightFinder; Configuration = ArmyConfiguration; Deployments = ArmyConfiguration.DeploymentConfigurations.Select( i => i.GenerateDeployment(this, IdGenerator)).ToList(); Match.Relay.OnUnitDestroy += UnitDestroyed; Match.Relay.OnUnitCapture += UnitCaptured; SightFinder.TrackingArmy = this; SightFinder.Hook(Match.Relay); _IdGenerator = IdGenerator; }
public Deployment GenerateDeployment(Army Army, IdGenerator IdGenerator) { return(new PositionalDeployment(Army, UnitGroup.GenerateUnits(Army, IdGenerator), this, IdGenerator)); }
public Deployment GenerateDeployment(Army Army, IdGenerator IdGenerator) { return(new ConvoyDeployment(Army, UnitGroup.GenerateUnits(Army, IdGenerator), this, IdGenerator)); }