diff options
Diffstat (limited to 'src/mame/includes/bogeyman.h')
-rw-r--r-- | src/mame/includes/bogeyman.h | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/mame/includes/bogeyman.h b/src/mame/includes/bogeyman.h index a20b299d859..871eae6f92b 100644 --- a/src/mame/includes/bogeyman.h +++ b/src/mame/includes/bogeyman.h @@ -5,6 +5,10 @@ Bogey Manor *************************************************************************/ +#ifndef MAME_INCLUDES_BOGEYMAN_H +#define MAME_INCLUDES_BOGEYMAN_H + +#pragma once #include "sound/ay8910.h" #include "emupal.h" @@ -12,8 +16,8 @@ class bogeyman_state : public driver_device { public: - bogeyman_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + bogeyman_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), @@ -23,8 +27,17 @@ public: m_videoram2(*this, "videoram2"), m_colorram(*this, "colorram"), m_colorram2(*this, "colorram2"), - m_spriteram(*this, "spriteram") { } + m_spriteram(*this, "spriteram") + { } + + void bogeyman(machine_config &config); + +protected: + virtual void machine_start() override; + virtual void machine_reset() override; + virtual void video_start() override; +private: /* devices */ required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; @@ -59,13 +72,10 @@ public: TILE_GET_INFO_MEMBER(get_bg_tile_info); TILE_GET_INFO_MEMBER(get_fg_tile_info); - virtual void machine_start() override; - virtual void machine_reset() override; - virtual void video_start() override; - DECLARE_PALETTE_INIT(bogeyman); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect); - void bogeyman(machine_config &config); void bogeyman_map(address_map &map); }; + +#endif // MAME_INCLUDES_BOGEYMAN_H |