summaryrefslogtreecommitdiffstats
path: root/src/mame/includes/starshp1.h
diff options
context:
space:
mode:
authorGravatarGravatar Aaron Giles <aaron@aarongiles.com>2011-01-27 08:21:35 +0000
committerGravatarGravatar Aaron Giles <aaron@aarongiles.com>2011-01-27 08:21:35 +0000
commitb36244a73411ba82201718f82421367ba6219651 (patch)
treea7ca87f60d5b1a14d1509a28db736cb37872d440 /src/mame/includes/starshp1.h
parent2fc75fcd4520412da25b5c5b68e3dca0bd391f16 (diff)
From: Atari Ace [atari_ace@frontier.com]
Sent: Saturday, January 22, 2011 2:11 PM To: submit@mamedev.org Cc: atariace@hotmail.com; Aaron Giles Subject: [patch] Add driver_device to some Atari drivers Hi mamedev, This patch eliminates static/global variables in a number of Atari drivers by moving them into a driver_device. ~aa
Diffstat (limited to 'src/mame/includes/starshp1.h')
-rw-r--r--src/mame/includes/starshp1.h57
1 files changed, 31 insertions, 26 deletions
diff --git a/src/mame/includes/starshp1.h b/src/mame/includes/starshp1.h
index df2f87be551..d9e777d091e 100644
--- a/src/mame/includes/starshp1.h
+++ b/src/mame/includes/starshp1.h
@@ -30,36 +30,41 @@
#define STARSHP1_VBSTART (0x0f0)
-/*----------- defined in drivers/starshp1.c -----------*/
-
-extern int starshp1_attract;
+class starshp1_state : public driver_device
+{
+public:
+ starshp1_state(running_machine &machine, const driver_device_config_base &config)
+ : driver_device(machine, config) { }
+
+ int analog_in_select;
+ int attract;
+ UINT8 *playfield_ram;
+ UINT8 *hpos_ram;
+ UINT8 *vpos_ram;
+ UINT8 *obj_ram;
+ int ship_explode;
+ int ship_picture;
+ int ship_hoffset;
+ int ship_voffset;
+ int ship_size;
+ int circle_hpos;
+ int circle_vpos;
+ int circle_size;
+ int circle_mod;
+ int circle_kill;
+ int phasor;
+ int collision_latch;
+ int starfield_kill;
+ int mux;
+ int inverse;
+ UINT16 *LSFR;
+ bitmap_t *helper;
+ tilemap_t *bg_tilemap;
+};
/*----------- defined in video/starshp1.c -----------*/
-extern UINT8 *starshp1_playfield_ram;
-extern UINT8 *starshp1_hpos_ram;
-extern UINT8 *starshp1_vpos_ram;
-extern UINT8 *starshp1_obj_ram;
-
-extern int starshp1_ship_explode;
-extern int starshp1_ship_picture;
-extern int starshp1_ship_hoffset;
-extern int starshp1_ship_voffset;
-extern int starshp1_ship_size;
-
-extern int starshp1_circle_hpos;
-extern int starshp1_circle_vpos;
-extern int starshp1_circle_size;
-extern int starshp1_circle_mod;
-extern int starshp1_circle_kill;
-
-extern int starshp1_phasor;
-extern int starshp1_collision_latch;
-extern int starshp1_starfield_kill;
-extern int starshp1_mux;
-extern int starshp1_inverse;
-
READ8_HANDLER( starshp1_rng_r );
WRITE8_HANDLER( starshp1_sspic_w );