diff options
Diffstat (limited to 'src/mame/drivers/tugboat.cpp')
-rw-r--r-- | src/mame/drivers/tugboat.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/drivers/tugboat.cpp b/src/mame/drivers/tugboat.cpp index e7dc7cf6ba8..92b0d26880a 100644 --- a/src/mame/drivers/tugboat.cpp +++ b/src/mame/drivers/tugboat.cpp @@ -37,11 +37,6 @@ always false - counter was reloaded and incremented before interrupt occurs class tugboat_state : public driver_device { public: - enum - { - TIMER_INTERRUPT - }; - tugboat_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), @@ -50,6 +45,14 @@ public: m_palette(*this, "palette"), m_ram(*this, "ram") { } + void tugboat(machine_config &config); + +private: + enum + { + TIMER_INTERRUPT + }; + required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; required_device<screen_device> m_screen; @@ -76,12 +79,10 @@ public: DECLARE_PALETTE_INIT(tugboat); uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - void draw_tilemap(bitmap_ind16 &bitmap,const rectangle &cliprect, - int addr,int gfx0,int gfx1,int transparency); + void draw_tilemap(bitmap_ind16 &bitmap, const rectangle &cliprect, int addr, int gfx0, int gfx1, int transparency); + + void main_map(address_map &map); - void tugboat(machine_config &config); - void main_map(address_map &map); -protected: virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; }; |