1. -- 
  2. -- Copyright (c) 2012 Kevin Wellwood 
  3. -- All rights reserved. 
  4. -- 
  5. -- This source code is distributed under the Modified BSD License. For terms and 
  6. -- conditions, see license.txt. 
  7. -- 
  8.  
  9. package Widgets.Containers.Game_Screens.Retry is 
  10.  
  11.     -- The retry screen is shown when Keen dies, to ask the player if he wants 
  12.     -- to try the level again or return to the map. 
  13.     type Retry_Screen is new Game_Screen with private; 
  14.  
  15.     -- Creates a new retry level screen. 
  16.     function Create_Retry_Screen( view     : not null access Game_Views.Game_View'Class; 
  17.                                   id       : String; 
  18.                                   dialogId : Integer ) return A_Game_Screen; 
  19.  
  20. private 
  21.  
  22.     type Retry_Screen is new Game_Screen with 
  23.         record 
  24.             -- the pending dialog id to send with the response event 
  25.             dialogId : Integer := 0; 
  26.         end record; 
  27.  
  28.     procedure Construct( this     : access Retry_Screen; 
  29.                          view     : not null access Game_Views.Game_View'Class; 
  30.                          id       : String; 
  31.                          dialogId : Integer ); 
  32.  
  33.     procedure Activate( this : access Retry_Screen ); 
  34.  
  35. end Widgets.Containers.Game_Screens.Retry;