/// <summary> /// Creates a battery. /// </summary> /// <param name="xCoordinate">x coordinate of the battery </param> /// <param name="yCoordinate">y coordinate of the battery </param> /// <param name="timer">the timer on which the Battery will have an effect</param> public Battery(float xCoordinate, float yCoordinate, Timer timer) : base(xCoordinate, yCoordinate) { LevelTimer = timer; }
/// <summary> /// Generates a level. /// </summary> /// <param name="width">width of the level.</param> /// <param name="height">height of the level.</param> /// <param name="time">the initial time given to the player to finish the level</param> public Level(int width, int height, int time) { Width = width; Height = height; Timer = new Timer(time); }