Ejemplo n.º 1
0
 /// <summary>
 /// Sets the user interface manager.
 /// </summary>
 /// <param name="manager">new user interface manager</param>
 public void setManager(UserInterfaceManager manager)
 {
     this.manager = manager;
 }
Ejemplo n.º 2
0
 /// <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();
 }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <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();
 }
Ejemplo n.º 5
0
 /// <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();
 }