Exemplo n.º 1
0
 //Constructor
 public Battlefield()
 {
     fleet = new Fleet();
     herd  = new Herd();
 }
Exemplo n.º 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();
        }
Exemplo n.º 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
 }
Exemplo n.º 6
0
 //constructor
 public BattleField()
 {
     herd  = new Herd();
     fleet = new Fleet();
 }
Exemplo n.º 7
0
 public Battlefield()
 {
     herd       = new Herd();
     fleet      = new Fleet();
     dinoAttack = new DinoWeapon();
 }
Exemplo n.º 8
0
 //CONSTRUCTOR SPAWNning in ?
 public Battlefield(Fleet fleet, Herd herd)
 {
     fleet = new Fleet();
     herd  = new Herd();
 }