コード例 #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
ファイル: ShipBuilder.cs プロジェクト: Iran/ClassicRA
 public ShipBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
コード例 #4
0
ファイル: DefenseBuilder.cs プロジェクト: Iran/ClassicRA
 public DefenseBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
コード例 #5
0
ファイル: InfantryBuilder.cs プロジェクト: Iran/ClassicRA
 public InfantryBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
コード例 #6
0
ファイル: SquadManager.cs プロジェクト: Iran/ClassicRA
        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
ファイル: AircraftBuilder.cs プロジェクト: Iran/ClassicRA
 public AircraftBuilder(IranAI AI)
 {
     this.AI = AI;
     this.world = AI.world;
 }
コード例 #8
0
ファイル: VehicleBuilder.cs プロジェクト: Iran/ClassicRA
 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>();
 }