summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/starcrus.h
blob: e542c2a909fbfdccdcf8c553a5ca5af6759f8024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
class starcrus_state : public driver_device
{
public:
	starcrus_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) { }

	bitmap_ind16 *m_ship1_vid;
	bitmap_ind16 *m_ship2_vid;
	bitmap_ind16 *m_proj1_vid;
	bitmap_ind16 *m_proj2_vid;

	int m_s1_x;
	int m_s1_y;
	int m_s2_x;
	int m_s2_y;
	int m_p1_x;
	int m_p1_y;
	int m_p2_x;
	int m_p2_y;

	int m_p1_sprite;
	int m_p2_sprite;
	int m_s1_sprite;
	int m_s2_sprite;

	int m_engine1_on;
	int m_engine2_on;
	int m_explode1_on;
	int m_explode2_on;
	int m_launch1_on;
	int m_launch2_on;

	int m_collision_reg;

	int m_engine_sound_playing;
	int m_explode_sound_playing;
	int m_launch1_sound_playing;
	int m_launch2_sound_playing;
	DECLARE_WRITE8_MEMBER(starcrus_s1_x_w);
	DECLARE_WRITE8_MEMBER(starcrus_s1_y_w);
	DECLARE_WRITE8_MEMBER(starcrus_s2_x_w);
	DECLARE_WRITE8_MEMBER(starcrus_s2_y_w);
	DECLARE_WRITE8_MEMBER(starcrus_p1_x_w);
	DECLARE_WRITE8_MEMBER(starcrus_p1_y_w);
	DECLARE_WRITE8_MEMBER(starcrus_p2_x_w);
	DECLARE_WRITE8_MEMBER(starcrus_p2_y_w);
	DECLARE_WRITE8_MEMBER(starcrus_ship_parm_1_w);
	DECLARE_WRITE8_MEMBER(starcrus_ship_parm_2_w);
	DECLARE_WRITE8_MEMBER(starcrus_proj_parm_1_w);
	DECLARE_WRITE8_MEMBER(starcrus_proj_parm_2_w);
	DECLARE_READ8_MEMBER(starcrus_coll_det_r);
};


/*----------- defined in video/starcrus.c -----------*/

VIDEO_START( starcrus );
SCREEN_UPDATE_IND16( starcrus );