/* CONSTRUCTOR */
 public UtilityDroid(DroidMaterial material, DroidModel model, DroidColor color, bool hasToolbox, bool hasComputerConnection, bool hasArm) : base(material, model, color)
 {
     this.HasToolbox            = hasToolbox;
     this.HasComputerConnection = hasComputerConnection;
     this.HasArm = hasArm;
     CalculateTotalCost();
 }
 /* CONSTRUCTOR */
 public Droid(DroidMaterial material, DroidModel model, DroidColor color)
 {
     this.Material = material;
     this.Model = model;
     this.Color = color;
     CalculateTotalCost();
 }
Exemple #3
0
 public JanitorDroid(DroidMaterial material, DroidModel model, DroidColor color, bool hasToolbox, bool hasComputerConnection, bool hasArm, bool hasTrashCompactor, bool hasVacuum)
     : base(material, model, color, hasToolbox, hasComputerConnection, hasArm)
 {
     this.HasTrashCompactor = hasTrashCompactor;
     this.HasVacuum         = hasVacuum;
     CalculateTotalCost();
 }
 /* CONSTRUCTOR */
 public Droid(DroidMaterial material, DroidModel model, DroidColor color)
 {
     this.Material = material;
     this.Model    = model;
     this.Color    = color;
     CalculateTotalCost();
 }
 public JanitorDroid(DroidMaterial material, DroidModel model, DroidColor color, bool hasToolbox, bool hasComputerConnection, bool hasArm, bool hasTrashCompactor, bool hasVacuum)
     : base(material, model, color, hasToolbox, hasComputerConnection, hasArm)
 {
     this.HasTrashCompactor = hasTrashCompactor;
     this.HasVacuum = hasVacuum;
     CalculateTotalCost();
 }
 /* CONSTRUCTOR */
 public UtilityDroid(DroidMaterial material, DroidModel model, DroidColor color, bool hasToolbox, bool hasComputerConnection, bool hasArm)
     : base(material, model, color)
 {
     this.HasToolbox = hasToolbox;
     this.HasComputerConnection = hasComputerConnection;
     this.HasArm = hasArm;
     CalculateTotalCost();
 }
        public void TestDroidDeployTimeIs10()
        {
            // Arrange
            DroidModel dm = new DroidModel();

            // Act
            var result = 10;

            // Assert
            Assert.AreEqual(dm.GetDroidDeployTime(), result);
        }
        public void TestDroidCurrentHealthIsZero()
        {
            // Arrange
            DroidModel dm = new DroidModel();

            // Act
            var result = 0;

            // Assert
            Assert.AreEqual(dm.GetDroidCurrentHealth(), result);
        }
        public void TestDroidMaxEnergyIsTen()
        {
            // Arrange
            DroidModel dm = new DroidModel();

            // Act
            var result = 10;

            // Assert
            Assert.AreEqual(dm.GetDroidMaxEnergy(), result);
        }
Exemple #10
0
 public void SetDroidModel(DroidModel model)
 {
     _droidModel = model;
 }
Exemple #11
0
 // Constructor
 public ProtocolDroid(DroidMaterial material, DroidModel model, DroidColor color, int numberOfLanguages) : base(material, model, color)
 {
     this.NumberOfLanguages = numberOfLanguages;
     CalculateTotalCost();
 }
 public Droid()
 {
     _droidModel = new RepairDroidModel();
 }
 public Droid(DroidModel model)
 {
     _droidModel = model;
 }
 /* CONSTRUCTOR */
 public AstromechDroid(DroidMaterial material, DroidModel model, DroidColor color, bool hasToolbox, bool hasComputerConnection, bool hasArm, bool hasFireExtinguisher, int numberOfShips)
     : base(material, model, color, hasToolbox, hasComputerConnection, hasArm)
 {
     this.NumberOfShips = numberOfShips;
     this.HasFireExtinguisher = hasFireExtinguisher;
 }
 // Constructor
 public ProtocolDroid(DroidMaterial material, DroidModel model, DroidColor color, int numberOfLanguages)
     : base(material, model, color)
 {
     this.NumberOfLanguages = numberOfLanguages;
     CalculateTotalCost();
 }
 /* CONSTRUCTOR */
 public AstromechDroid(DroidMaterial material, DroidModel model, DroidColor color, bool hasToolbox, bool hasComputerConnection, bool hasArm, bool hasFireExtinguisher, int numberOfShips)
     : base(material, model, color, hasToolbox, hasComputerConnection, hasArm)
 {
     this.NumberOfShips       = numberOfShips;
     this.HasFireExtinguisher = hasFireExtinguisher;
 }