/// <summary> /// Sets the user interface manager. /// </summary> /// <param name="manager">new user interface manager</param> public void setManager(UserInterfaceManager manager) { this.manager = manager; }
/// <summary> /// Constructor of the <c>EndState</c> abstract class. /// It calls the base constructor and then calls the /// <c>createEndState</c> method to initialize /// the appearance of the state. /// </summary> /// <param name="handler">game handler for accessing other elements /// of the game</param> /// <param name="image">an image displayed on top of the window</param> public EndState(Handler handler, Texture2D image) : base(handler) { manager = new UserInterfaceManager(handler); this.image = image; createEndState(); }
/// <summary> /// Constructor of the <c>MenuState</c> class. /// It calls the base constructor and then calls the /// <c>createMenuState</c> method to initialize /// the appearance of the state. /// </summary> /// <param name="handler">game handler for accessing other elements /// of the game</param> public MenuState(Handler handler) : base(handler) { manager = new UserInterfaceManager(handler); createMenuState(); }
/// <summary> /// Constructor of the <c>RulesState</c> class. /// It calls the base constructor and then calls the /// <c>createRulesState</c> method to initialize /// the appearance of the state. /// </summary> /// <param name="handler">game handler for accessing other elements /// of the game</param> public RulesState(Handler handler) : base(handler) { manager = new UserInterfaceManager(handler); createRulesState(); }
/// <summary> /// Constructor of the <c>AboutState</c> class. /// It calls the base constructor and then calls the /// <c>createAboutState</c> method to initialize /// the appearance of the state. /// </summary> /// <param name="handler">game handler for accessing other elements /// of the game</param> public AboutState(Handler handler) : base(handler) { manager = new UserInterfaceManager(handler); createAboutState(); }