summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/gumbo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/gumbo.h')
-rw-r--r--src/mame/includes/gumbo.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/mame/includes/gumbo.h b/src/mame/includes/gumbo.h
index f9949459fee..2b766560396 100644
--- a/src/mame/includes/gumbo.h
+++ b/src/mame/includes/gumbo.h
@@ -5,21 +5,29 @@
Gumbo - Miss Bingo - Miss Puzzle
*************************************************************************/
+#ifndef MAME_INCLUDES_GUMBO_H
+#define MAME_INCLUDES_GUMBO_H
+
+#pragma once
class gumbo_state : public driver_device
{
public:
- gumbo_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ gumbo_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_bg_videoram(*this, "bg_videoram"),
m_fg_videoram(*this, "fg_videoram"),
m_maincpu(*this, "maincpu"),
- m_gfxdecode(*this, "gfxdecode") { }
+ m_gfxdecode(*this, "gfxdecode")
+ { }
void mspuzzle(machine_config &config);
void dblpoint(machine_config &config);
void gumbo(machine_config &config);
+protected:
+ virtual void video_start() override;
+
private:
/* memory pointers */
required_shared_ptr<uint16_t> m_bg_videoram;
@@ -28,15 +36,19 @@ private:
/* video-related */
tilemap_t *m_bg_tilemap;
tilemap_t *m_fg_tilemap;
+
+ required_device<cpu_device> m_maincpu;
+ required_device<gfxdecode_device> m_gfxdecode;
+
DECLARE_WRITE16_MEMBER(gumbo_bg_videoram_w);
DECLARE_WRITE16_MEMBER(gumbo_fg_videoram_w);
TILE_GET_INFO_MEMBER(get_gumbo_bg_tile_info);
TILE_GET_INFO_MEMBER(get_gumbo_fg_tile_info);
- virtual void video_start() override;
uint32_t screen_update_gumbo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- required_device<cpu_device> m_maincpu;
- required_device<gfxdecode_device> m_gfxdecode;
+
void dblpoint_map(address_map &map);
void gumbo_map(address_map &map);
void mspuzzle_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_GUMBO_H