summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/toobin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/toobin.h')
-rw-r--r--src/mame/includes/toobin.h52
1 files changed, 30 insertions, 22 deletions
diff --git a/src/mame/includes/toobin.h b/src/mame/includes/toobin.h
index b40887fc854..43b530497c8 100644
--- a/src/mame/includes/toobin.h
+++ b/src/mame/includes/toobin.h
@@ -5,6 +5,10 @@
Atari Toobin' hardware
*************************************************************************/
+#ifndef MAME_INCLUDES_TOOBIN_H
+#define MAME_INCLUDES_TOOBIN_H
+
+#pragma once
#include "machine/atarigen.h"
#include "audio/atarijsa.h"
@@ -13,24 +17,19 @@
class toobin_state : public atarigen_state
{
public:
- toobin_state(const machine_config &mconfig, device_type type, const char *tag)
- : atarigen_state(mconfig, type, tag),
- m_jsa(*this, "jsa"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_mob(*this, "mob"),
- m_interrupt_scan(*this, "interrupt_scan") { }
-
- required_device<atari_jsa_i_device> m_jsa;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_motion_objects_device> m_mob;
-
- required_shared_ptr<uint16_t> m_interrupt_scan;
+ toobin_state(const machine_config &mconfig, device_type type, const char *tag) :
+ atarigen_state(mconfig, type, tag),
+ m_jsa(*this, "jsa"),
+ m_playfield_tilemap(*this, "playfield"),
+ m_alpha_tilemap(*this, "alpha"),
+ m_mob(*this, "mob"),
+ m_interrupt_scan(*this, "interrupt_scan")
+ { }
- double m_brightness;
- bitmap_ind16 m_pfbitmap;
+ void toobin(machine_config &config);
+protected:
+ virtual void video_start() override;
virtual void update_interrupts() override;
DECLARE_WRITE16_MEMBER(interrupt_scan_w);
@@ -43,13 +42,22 @@ public:
TILE_GET_INFO_MEMBER(get_alpha_tile_info);
TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- DECLARE_MACHINE_START(toobin);
- DECLARE_MACHINE_RESET(toobin);
- DECLARE_VIDEO_START(toobin);
-
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- static const atari_motion_objects_config s_mob_config;
- void toobin(machine_config &config);
void main_map(address_map &map);
+
+private:
+ required_device<atari_jsa_i_device> m_jsa;
+ required_device<tilemap_device> m_playfield_tilemap;
+ required_device<tilemap_device> m_alpha_tilemap;
+ required_device<atari_motion_objects_device> m_mob;
+
+ required_shared_ptr<uint16_t> m_interrupt_scan;
+
+ double m_brightness;
+ bitmap_ind16 m_pfbitmap;
+
+ static const atari_motion_objects_config s_mob_config;
};
+
+#endif // MAME_INCLUDES_TOOBIN_H