2023-10-15 11:00:07 -04:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Xabina is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either
-- version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2023-10-15 12:56:21 -04:00
with ada.text_io ;
2023-10-15 12:00:08 -04:00
with core ;
2023-10-15 11:00:07 -04:00
package action is
------------------------------------------------------------------------------------------
procedure game_idle ;
type procedure_pointer is access procedure ;
type mememe is mod ( 2 * * 8 ) ;
type list_type is array ( mememe ) of procedure _pointer ;
------------------------------------------------------------------------------------------
active : boolean := true ;
signal : character := ' ' ;
list : list_type := ( others => game_idle ' access ) ;
------------------------------------------------------------------------------------------
2023-10-15 12:56:21 -04:00
procedure scan ;
2023-10-15 12:40:35 -04:00
procedure bind ( symbol : character := core . cancel ;
2023-10-15 11:00:07 -04:00
mimimi : procedure _pointer := game_idle ' access ) ;
2023-10-15 12:40:35 -04:00
procedure unbind ( symbol : character := core . cancel ) ;
2023-10-15 11:00:07 -04:00
procedure game_exit ;
------------------------------------------------------------------------------------------
end action ;