summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/triplhnt.h
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2017-04-20 18:03:12 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2017-04-20 18:03:12 +0200
commitce62497501e0b086d2a5fe39a291bf1f74911114 (patch)
treedea4b65499f6eb6b044815321b9426bfbf270f49 /src/mame/includes/triplhnt.h
parente913366d1cd7b0b0738ca2094e22e1c201aa9535 (diff)
daily timer_set removal (nw)
Diffstat (limited to 'src/mame/includes/triplhnt.h')
-rw-r--r--src/mame/includes/triplhnt.h61
1 files changed, 34 insertions, 27 deletions
diff --git a/src/mame/includes/triplhnt.h b/src/mame/includes/triplhnt.h
index 4057ab3452f..325c5fedd4d 100644
--- a/src/mame/includes/triplhnt.h
+++ b/src/mame/includes/triplhnt.h
@@ -30,57 +30,64 @@ public:
triplhnt_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
- m_playfield_ram(*this, "playfield_ram"),
- m_vpos_ram(*this, "vpos_ram"),
- m_hpos_ram(*this, "hpos_ram"),
- m_orga_ram(*this, "orga_ram"),
- m_code_ram(*this, "code_ram"),
m_maincpu(*this, "maincpu"),
m_watchdog(*this, "watchdog"),
m_discrete(*this, "discrete"),
m_samples(*this, "samples"),
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
- m_palette(*this, "palette") { }
+ m_palette(*this, "palette"),
+ m_playfield_ram(*this, "playfield_ram"),
+ m_vpos_ram(*this, "vpos_ram"),
+ m_hpos_ram(*this, "hpos_ram"),
+ m_orga_ram(*this, "orga_ram"),
+ m_code_ram(*this, "code_ram") { }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<watchdog_timer_device> m_watchdog;
+ required_device<discrete_device> m_discrete;
+ required_device<samples_device> m_samples;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<screen_device> m_screen;
+ required_device<palette_device> m_palette;
- uint8_t m_cmos[16];
- uint8_t m_da_latch;
- uint8_t m_misc_flags;
- uint8_t m_cmos_latch;
- uint8_t m_hit_code;
required_shared_ptr<uint8_t> m_playfield_ram;
required_shared_ptr<uint8_t> m_vpos_ram;
required_shared_ptr<uint8_t> m_hpos_ram;
required_shared_ptr<uint8_t> m_orga_ram;
required_shared_ptr<uint8_t> m_code_ram;
+
+ uint8_t m_cmos[16];
+ uint8_t m_da_latch;
+ uint8_t m_misc_flags;
+ uint8_t m_cmos_latch;
+ uint8_t m_hit_code;
int m_sprite_zoom;
int m_sprite_bank;
bitmap_ind16 m_helper;
+ emu_timer *m_hit_timer;
tilemap_t* m_bg_tilemap;
- DECLARE_WRITE8_MEMBER(triplhnt_misc_w);
- DECLARE_READ8_MEMBER(triplhnt_cmos_r);
- DECLARE_READ8_MEMBER(triplhnt_input_port_4_r);
- DECLARE_READ8_MEMBER(triplhnt_misc_r);
- DECLARE_READ8_MEMBER(triplhnt_da_latch_r);
+
+ DECLARE_WRITE8_MEMBER(misc_w);
+ DECLARE_READ8_MEMBER(cmos_r);
+ DECLARE_READ8_MEMBER(input_port_4_r);
+ DECLARE_READ8_MEMBER(misc_r);
+ DECLARE_READ8_MEMBER(da_latch_r);
+
DECLARE_DRIVER_INIT(triplhnt);
TILE_GET_INFO_MEMBER(get_tile_info);
virtual void video_start() override;
DECLARE_PALETTE_INIT(triplhnt);
- uint32_t screen_update_triplhnt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
- void triplhnt_set_collision(int code);
- void triplhnt_update_misc(address_space &space, int offset);
- required_device<cpu_device> m_maincpu;
- required_device<watchdog_timer_device> m_watchdog;
- required_device<discrete_device> m_discrete;
- required_device<samples_device> m_samples;
- required_device<gfxdecode_device> m_gfxdecode;
- required_device<screen_device> m_screen;
- required_device<palette_device> m_palette;
+ void set_collision(int code);
+ void update_misc(address_space &space, int offset);
+
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
};
-/*----------- defined in audio/triplhnt.c -----------*/
+/*----------- defined in audio/triplhnt.cpp -----------*/
DISCRETE_SOUND_EXTERN( triplhnt );
extern const char *const triplhnt_sample_names[];