public Actor harvester = null; // the harvester to protect #endregion Fields #region Constructors public HarvesterDefenseSquad(IranAI AI, SquadManager manager, SquadType squadtype, SquadRole squadrole) : base(AI, manager, squadtype, squadrole) { this.AI = AI; squadtype = SquadType.Tank; SetMaxSquadSize(2); }
public ShipSquad(IranAI AI, SquadManager manager, SquadType squadtype, SquadRole squadrole) : base(AI, manager, squadtype, squadrole) { this.AI = AI; squadtype = SquadType.Ship; SetMaxSquadSize(2); // isready = true; // Important for creating new squads, if this doesn't get set somewhere the squad size will be unlimited }
public void Activate(Player p) { this.p = p; this.world = p.World; GameStarted = true; random = new XRandom((int)p.PlayerActor.ActorID); SpecialPowers = p.PlayerActor.Trait<SupportPowerManager>(); Power = p.PlayerActor.Trait<PowerManager>(); Resources = p.PlayerActor.Trait<PlayerResources>(); squadmanager = new SquadManager(this); // Initialize builders Builders = new List<IAIBuilder>() { new BaseBuilder(this), new DefenseBuilder(this), new InfantryBuilder(this), new VehicleBuilder(this), new AircraftBuilder(this), new ShipBuilder(this) }; // Have the bot cheat, gets free 500 000 credits at the start of the match Resources.GiveCash(500000); }
public Squad(IranAI AI, SquadManager manager, SquadType squadtype, SquadRole squadrole) { this.AI = AI; this.manager = manager; this.squadtype = squadtype; this.world = AI.world; this.squadrole = squadrole; members = new List<Actor>(); }