diff options
Diffstat (limited to 'src/mame/includes/wecleman.h')
-rw-r--r-- | src/mame/includes/wecleman.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/mame/includes/wecleman.h b/src/mame/includes/wecleman.h index 4fe07797f48..b2f07de2a10 100644 --- a/src/mame/includes/wecleman.h +++ b/src/mame/includes/wecleman.h @@ -14,11 +14,6 @@ class wecleman_state : public driver_device { public: - enum - { - WECLEMAN_ID = 0, - HOTCHASE_ID - }; wecleman_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) , m_videostatus(*this, "videostatus") @@ -41,7 +36,20 @@ public: , m_led(*this, "led%u", 0U) { } - // [RH] TODO: Make this less awful and put stuff behind protected and private wherever possible. + void hotchase(machine_config &config); + void wecleman(machine_config &config); + + void init_wecleman(); + void init_hotchase(); + + DECLARE_CUSTOM_INPUT_MEMBER(hotchase_sound_status_r); + +private: + enum + { + WECLEMAN_ID = 0, + HOTCHASE_ID + }; optional_shared_ptr<uint16_t> m_videostatus; optional_shared_ptr<uint16_t> m_protection_ram; @@ -98,8 +106,7 @@ public: DECLARE_WRITE8_MEMBER(wecleman_volume_callback); template<int Chip> DECLARE_READ8_MEMBER(hotchase_k007232_r); template<int Chip> DECLARE_WRITE8_MEMBER(hotchase_k007232_w); - void init_wecleman(); - void init_hotchase(); + TILE_GET_INFO_MEMBER(wecleman_get_txt_tile_info); TILE_GET_INFO_MEMBER(wecleman_get_bg_tile_info); TILE_GET_INFO_MEMBER(wecleman_get_fg_tile_info); @@ -127,7 +134,7 @@ public: void hotchase_draw_road(bitmap_ind16 &bitmap, const rectangle &cliprect); K051316_CB_MEMBER(hotchase_zoom_callback_1); K051316_CB_MEMBER(hotchase_zoom_callback_2); - DECLARE_CUSTOM_INPUT_MEMBER(hotchase_sound_status_r); + DECLARE_WRITE8_MEMBER(hotchase_sound_hs_w); required_device<cpu_device> m_maincpu; @@ -141,8 +148,6 @@ public: output_finder<1> m_led; - void hotchase(machine_config &config); - void wecleman(machine_config &config); void hotchase_map(address_map &map); void hotchase_sound_map(address_map &map); void hotchase_sub_map(address_map &map); @@ -150,8 +155,6 @@ public: void wecleman_sound_map(address_map &map); void wecleman_sub_map(address_map &map); - -private: struct sprite_t { sprite_t() { } |