예제 #1
0
 //Problem 2. -> constructor
 public Battery(string model, uint hoursIdle, uint hoursTalk, BatType batteryType)
 {
     this.Model       = model;
     this.HoursIdle   = hoursIdle;
     this.HoursTalk   = hoursTalk;
     this.BatteryType = batteryType;
 }
예제 #2
0
파일: Bat.cs 프로젝트: Noy6023/BrickBreaker
 /// <summary>
 /// defult constructor
 /// </summary>
 /// <param name="color">the color</param>
 public Bat(Color color, BatType batType) : base(color)
 {
     base.Position = new Vector(0, Constants.DEFULT_SCREEN_SIZE.Y - (Constants.DEFULT_SCREEN_SIZE.Y / 10));
     Size          = new Vector(Constants.BAT_SIZE.X, Constants.BAT_SIZE.Y);
     base.Paint    = new Paint();
     Paint.Color   = color;
     Velocity      = new Vector(Constants.DEFULT_VECTOR);
     this.batType  = batType;
 }
예제 #3
0
 public BatTask(string zip, string output, int count, string mode, BatType batType, bool noCopy, List <Computer> computers, List <string> os) : base(computers, os)
 {
     Zip       = zip;
     Output    = output;
     TestCount = count;
     Mode      = mode;
     Type      = batType;
     NoCopy    = noCopy;
 }
예제 #4
0
 public BatteryControl(BatType bType)
 {
     InitializeComponent();
     _bType = bType;
     CalcRanges();
 }
예제 #5
0
파일: Bat.cs 프로젝트: Noy6023/BrickBreaker
        private readonly BatType batType; //the type of the bat

        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="position">the position</param>
        /// <param name="color">the color</param>
        /// <param name="velocity">the velocity</param>
        public Bat(Vector position, Color color, Vector velocity, BatType batType) : base(position, color)
        {
            this.Velocity = new Vector(velocity);
            this.batType  = batType;
        }
예제 #6
0
 public Battery(BatType batteryType, int hoursIdle, int hoursTalk)
 {
     this.BatteryType = batteryType;
     this.HoursIdle = hoursIdle;
     this.HoursTalk = hoursTalk;
 }