示例#1
0
 //Constructor
 public Battlefield()
 {
     fleet = new Fleet();
     herd  = new Herd();
 }
        //// member variables - Has A
        //List<Weapon> nameofweaponsinList; // The Battlefield has 3 weapons to use


        //// constructor - Spawner
        public Battlefield()
        {
            theFleet = new Fleet();
            theHerd  = new Herd();
        }
 public Battlefield(Herd dinosCreator, Fleet robosCreator)
 {
     dinosaurs = dinosCreator;
     robots    = robosCreator;
 }
 // Instantiate these variables in the constructor
 public Battlefield()
 {
     Fleet robots    = new Fleet();
     Herd  dinosaurs = new Herd();
 }
 public Fleet robotSquad; //calling in the herd class to be used in the battlefield class/object
 public Battlefield()
 {
     dinoSquad  = new Herd();  // this is a new Herd
     robotSquad = new Fleet(); // this is a new Fleet
 }
 //constructor
 public BattleField()
 {
     herd  = new Herd();
     fleet = new Fleet();
 }
示例#7
0
 public Battlefield()
 {
     herd       = new Herd();
     fleet      = new Fleet();
     dinoAttack = new DinoWeapon();
 }
示例#8
0
 //CONSTRUCTOR SPAWNning in ?
 public Battlefield(Fleet fleet, Herd herd)
 {
     fleet = new Fleet();
     herd  = new Herd();
 }