예제 #1
0
파일: TankSquad.cs 프로젝트: Iran/ClassicRA
        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);
        }
예제 #2
0
파일: ShipSquad.cs 프로젝트: Iran/ClassicRA
 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
 }
예제 #3
0
 public ShipBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
예제 #4
0
 public DefenseBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
예제 #5
0
 public InfantryBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
예제 #6
0
        int feedbacktime = 60; // time to update feedback state, in ticks

        #endregion Fields

        #region Constructors

        public SquadManager(IranAI AI)
        {
            this.AI = AI;
            this.world = AI.world;
            this.squads = new List<ISquad>();
        }
예제 #7
0
 public AircraftBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
예제 #8
0
 public VehicleBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
예제 #9
0
파일: Squad.cs 프로젝트: Iran/ClassicRA
 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>();
 }