summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/welltris.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/welltris.h')
-rw-r--r--src/mame/includes/welltris.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mame/includes/welltris.h b/src/mame/includes/welltris.h
index 7ff69828a85..34d026d1665 100644
--- a/src/mame/includes/welltris.h
+++ b/src/mame/includes/welltris.h
@@ -1,5 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
+#ifndef MAME_INCLUDES_WELLTRIS_H
+#define MAME_INCLUDES_WELLTRIS_H
+
+#pragma once
#include "machine/gen_latch.h"
#include "video/vsystem_spr2.h"
@@ -7,8 +11,8 @@
class welltris_state : public driver_device
{
public:
- welltris_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ welltris_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_spr_old(*this, "vsystem_spr_old"),
@@ -16,7 +20,8 @@ public:
m_soundlatch(*this, "soundlatch"),
m_spriteram(*this, "spriteram"),
m_pixelram(*this, "pixelram"),
- m_charvideoram(*this, "charvideoram") { }
+ m_charvideoram(*this, "charvideoram")
+ { }
void quiz18k(machine_config &config);
void welltris(machine_config &config);
@@ -24,6 +29,10 @@ public:
void init_quiz18k();
void init_welltris();
+protected:
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
private:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
@@ -49,9 +58,6 @@ private:
DECLARE_WRITE16_MEMBER(scrollreg_w);
DECLARE_WRITE16_MEMBER(charvideoram_w);
- virtual void machine_start() override;
- virtual void video_start() override;
-
TILE_GET_INFO_MEMBER(get_tile_info);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -60,3 +66,5 @@ private:
void sound_map(address_map &map);
void sound_port_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_WELLTRIS_H