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


        //// constructor - Spawner
        public Battlefield()
        {
            theFleet = new Fleet();
            theHerd  = new Herd();
        }
예제 #3
0
 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
 }
예제 #6
0
 //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();
 }