summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tankbust.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tankbust.h')
-rw-r--r--src/mame/includes/tankbust.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/mame/includes/tankbust.h b/src/mame/includes/tankbust.h
index 55eb41245bb..09995cab17a 100644
--- a/src/mame/includes/tankbust.h
+++ b/src/mame/includes/tankbust.h
@@ -1,13 +1,17 @@
// license:GPL-2.0+
// copyright-holders:Jarek Burczynski
+#ifndef MAME_INCLUDES_TANKBUST_H
+#define MAME_INCLUDES_TANKBUST_H
+
+#pragma once
#include "emupal.h"
class tankbust_state : public driver_device
{
public:
- tankbust_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ tankbust_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_subcpu(*this, "sub"),
m_gfxdecode(*this, "gfxdecode"),
@@ -15,10 +19,16 @@ public:
m_txtram(*this, "txtram"),
m_videoram(*this, "videoram"),
m_colorram(*this, "colorram"),
- m_spriteram(*this, "spriteram") { }
+ m_spriteram(*this, "spriteram")
+ { }
void tankbust(machine_config &config);
+protected:
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
+ virtual void video_start() override;
+
private:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
@@ -55,9 +65,6 @@ private:
TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_txt_tile_info);
- virtual void machine_start() override;
- virtual void machine_reset() override;
- virtual void video_start() override;
DECLARE_PALETTE_INIT(tankbust);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -71,3 +78,5 @@ private:
void map_cpu2(address_map &map);
void port_map_cpu2(address_map &map);
};
+
+#endif // MAME_INCLUDES_TANKBUST_H