summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/xybots.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/xybots.h')
-rw-r--r--src/mame/includes/xybots.h42
1 files changed, 25 insertions, 17 deletions
diff --git a/src/mame/includes/xybots.h b/src/mame/includes/xybots.h
index 6c81d8b4e26..f0fa2a0ccc6 100644
--- a/src/mame/includes/xybots.h
+++ b/src/mame/includes/xybots.h
@@ -5,6 +5,10 @@
Atari Xybots hardware
*************************************************************************/
+#ifndef MAME_INCLUDES_XYBOTS_H
+#define MAME_INCLUDES_XYBOTS_H
+
+#pragma once
#include "machine/atarigen.h"
#include "audio/atarijsa.h"
@@ -13,30 +17,34 @@
class xybots_state : public atarigen_state
{
public:
- xybots_state(const machine_config &mconfig, device_type type, const char *tag)
- : atarigen_state(mconfig, type, tag),
- m_jsa(*this, "jsa"),
- m_playfield_tilemap(*this, "playfield"),
- m_alpha_tilemap(*this, "alpha"),
- m_mob(*this, "mob") { }
+ xybots_state(const machine_config &mconfig, device_type type, const char *tag) :
+ atarigen_state(mconfig, type, tag),
+ m_jsa(*this, "jsa"),
+ m_playfield_tilemap(*this, "playfield"),
+ m_alpha_tilemap(*this, "alpha"),
+ m_mob(*this, "mob")
+ { }
- required_device<atari_jsa_i_device> m_jsa;
- required_device<tilemap_device> m_playfield_tilemap;
- required_device<tilemap_device> m_alpha_tilemap;
- required_device<atari_motion_objects_device> m_mob;
+ DECLARE_DRIVER_INIT(xybots);
+ void xybots(machine_config &config);
- uint16_t m_h256;
+protected:
virtual void update_interrupts() override;
DECLARE_READ16_MEMBER(special_port1_r);
- DECLARE_DRIVER_INIT(xybots);
TILE_GET_INFO_MEMBER(get_alpha_tile_info);
TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- DECLARE_MACHINE_START(xybots);
- DECLARE_MACHINE_RESET(xybots);
- DECLARE_VIDEO_START(xybots);
uint32_t screen_update_xybots(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void main_map(address_map &map);
+
+private:
+ required_device<atari_jsa_i_device> m_jsa;
+ required_device<tilemap_device> m_playfield_tilemap;
+ required_device<tilemap_device> m_alpha_tilemap;
+ required_device<atari_motion_objects_device> m_mob;
+
+ uint16_t m_h256;
static const atari_motion_objects_config s_mob_config;
- void xybots(machine_config &config);
- void main_map(address_map &map);
};
+
+#endif // MAME_INCLUDES_XYBOTS_H