note
	description: "d_event.h"
	license: "[
				Copyright (C) 1993-1996 by id Software, Inc.
				Copyright (C) 2005-2014 Simon Howard
				Copyright (C) 2021 Ilgiz Mustafin
		
				This program 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 2 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.
		
				You should have received a copy of the GNU General Public License along
				with this program; if not, write to the Free Software Foundation, Inc.,
				51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
	]"

class 
	D_EVENT

create 
	make

feature 

	make
		do
		end
	
feature 

	Maxevents: INTEGER_32 = 64
	
feature -- buttoncode_t

	Bt_attack: INTEGER_32 = 1
			-- Press "fire".

	Bt_use: INTEGER_32 = 2
			-- Use button, to open doors, activate switches.
			-- Flag: game events, not really buttons.

	Bt_special: INTEGER_32 = 128

	Bt_specialmask: INTEGER_32 = 3
			-- Flag, weapon change pending.
			-- If true, the next 3 bits hold weapon num.

	Bt_change: INTEGER_32 = 4
			-- The 3bit weapon mask and shift, convenience.

	Bt_weaponmask: INTEGER_32 = 56
			-- originally (8+16+32)

	Bt_weaponshift: INTEGER_32 = 3

	Bts_pause: INTEGER_32 = 1
			-- Pause the game.

	Bts_savegame: INTEGER_32 = 2
			-- Save the game at each console.
			-- Savegame slot numbers
			--  occupy the second byte of buttons.

	Bts_savemask: INTEGER_32 = 28
			-- originally (4+8+16)

	Bts_saveshift: INTEGER_32 = 2
	
end -- class D_EVENT

Generated by ISE EiffelStudio