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.Paddle_War is 
  10.  
  11.     -- The screen for playing paddle war in the Keen menu. The game is reset 
  12.     -- each time the screen is created. 
  13.     type Paddle_War_Screen is new Game_Screen with private; 
  14.  
  15.     -- Creates a new paddle war screen with a paddle war widget at 0-0. 
  16.     function Create_Paddle_War_Screen( view : not null access Game_Views.Game_View'Class; 
  17.                                        id   : String ) return A_Game_Screen; 
  18.  
  19. private 
  20.  
  21.     type Paddle_War_Screen is new Game_Screen with null record; 
  22.  
  23.     procedure Construct( this : access Paddle_War_Screen; 
  24.                          view : not null access Game_Views.Game_View'Class; 
  25.                          id   : String ); 
  26.  
  27.     procedure Activate( this : access Paddle_War_Screen ); 
  28.  
  29. end Widgets.Containers.Game_Screens.Paddle_War;