summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/sprint8.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/sprint8.h')
-rw-r--r--src/mame/includes/sprint8.h60
1 files changed, 35 insertions, 25 deletions
diff --git a/src/mame/includes/sprint8.h b/src/mame/includes/sprint8.h
index 70b03b0f328..f7ce8afc8ee 100644
--- a/src/mame/includes/sprint8.h
+++ b/src/mame/includes/sprint8.h
@@ -1,5 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Stefan Jokisch
+#ifndef MAME_INCLUDES_SPRINT8_H
+#define MAME_INCLUDES_SPRINT8_H
+
+#pragma once
#include "machine/74259.h"
#include "machine/timer.h"
@@ -19,32 +23,12 @@ public:
m_video_ram(*this, "video_ram"),
m_pos_h_ram(*this, "pos_h_ram"),
m_pos_v_ram(*this, "pos_v_ram"),
- m_pos_d_ram(*this, "pos_d_ram") { }
-
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
- required_device<discrete_device> m_discrete;
-
- required_shared_ptr<uint8_t> m_video_ram;
- required_shared_ptr<uint8_t> m_pos_h_ram;
- required_shared_ptr<uint8_t> m_pos_v_ram;
- required_shared_ptr<uint8_t> m_pos_d_ram;
-
- int m_steer_dir[8];
- int m_steer_flag[8];
- int m_collision_reset;
- int m_collision_index;
- uint8_t m_dial[8];
- int m_team;
+ m_pos_d_ram(*this, "pos_d_ram")
+ { }
- tilemap_t* m_tilemap1;
- tilemap_t* m_tilemap2;
- bitmap_ind16 m_helper1;
- bitmap_ind16 m_helper2;
- emu_timer *m_collision_timer;
+ void sprint8(machine_config &config);
+protected:
DECLARE_READ8_MEMBER(collision_r);
DECLARE_READ8_MEMBER(input_r);
DECLARE_WRITE8_MEMBER(lockout_w);
@@ -67,10 +51,36 @@ public:
void set_pens();
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void set_collision(int n);
- void sprint8(machine_config &config);
void sprint8_audio(machine_config &config);
void sprint8_map(address_map &map);
+
+private:
+ required_device<cpu_device> m_maincpu;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
+ required_device<discrete_device> m_discrete;
+
+ required_shared_ptr<uint8_t> m_video_ram;
+ required_shared_ptr<uint8_t> m_pos_h_ram;
+ required_shared_ptr<uint8_t> m_pos_v_ram;
+ required_shared_ptr<uint8_t> m_pos_d_ram;
+
+ int m_steer_dir[8];
+ int m_steer_flag[8];
+ int m_collision_reset;
+ int m_collision_index;
+ uint8_t m_dial[8];
+ int m_team;
+
+ tilemap_t* m_tilemap1;
+ tilemap_t* m_tilemap2;
+ bitmap_ind16 m_helper1;
+ bitmap_ind16 m_helper2;
+ emu_timer *m_collision_timer;
};
/*----------- defined in audio/sprint8.c -----------*/
DISCRETE_SOUND_EXTERN( sprint8 );
+
+#endif // MAME_INCLUDES_SPRINT8_H