summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/rollrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/rollrace.h')
-rw-r--r--src/mame/includes/rollrace.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mame/includes/rollrace.h b/src/mame/includes/rollrace.h
index b5e1c038400..8931389cea6 100644
--- a/src/mame/includes/rollrace.h
+++ b/src/mame/includes/rollrace.h
@@ -1,23 +1,32 @@
// license:BSD-3-Clause
// copyright-holders:Pierpaolo Prazzoli
+#ifndef MAME_INCLUDES_ROLLRACE_H
+#define MAME_INCLUDES_ROLLRACE_H
+
+#pragma once
#include "emupal.h"
class rollrace_state : public driver_device
{
public:
- rollrace_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ rollrace_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"),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram") { }
+ m_spriteram(*this, "spriteram")
+ { }
void rollace2(machine_config &config);
void rollrace(machine_config &config);
+protected:
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
private:
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
@@ -59,8 +68,6 @@ private:
void tilemap_refresh_flip();
DECLARE_PALETTE_INIT(rollrace);
- virtual void machine_start() override;
- virtual void video_start() override;
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -69,3 +76,5 @@ private:
void rollrace_map(address_map &map);
void rollrace_sound_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_ROLLRACE_H