[Scummvm-cvs-logs] CVS: scummvm/simon items.cpp,1.72,1.73 simon.h,1.66,1.67 vga.cpp,1.54,1.55

Travis Howell kirben at users.sourceforge.net
Sat May 24 05:14:02 CEST 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv5334/simon

Modified Files:
	items.cpp simon.h vga.cpp 
Log Message:

A few function renames


Index: items.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/items.cpp,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- items.cpp	22 May 2003 00:00:42 -0000	1.72
+++ items.cpp	24 May 2003 12:13:23 -0000	1.73
@@ -1495,7 +1495,7 @@
 	uint16 b = TO_BE_16(a);
 	_lock_word |= 0x4000;
 	_vc_ptr = (byte *)&b;
-	vc_60_kill_thread();
+	vc_60_kill_sprite();
 	_lock_word &= ~0x4000;
 }
 
@@ -1507,7 +1507,7 @@
 
 	_lock_word |= 0x8000;
 	_vc_ptr = (byte *)&items;
-	vc_60_kill_thread();
+	vc_60_kill_sprite();
 	_lock_word &= ~0x8000;
 }
 

Index: simon.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.h,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- simon.h	21 May 2003 17:49:33 -0000	1.66
+++ simon.h	24 May 2003 12:13:23 -0000	1.67
@@ -602,7 +602,7 @@
 	// Simon1/Simon2 video script opcodes
 	void vc_1_dummy_op();
 	void vc_2_call();
-	void vc_3_new_thread();
+	void vc_3_new_sprite();
 	void vc_4_dummy_op();
 	void vc_5_skip_if_neq();
 	void vc_6_skip_ifn_sib_with_a();
@@ -621,10 +621,10 @@
 	void vc_19_chain_to_script();
 	void vc_20_set_code_word();
 	void vc_21_jump_if_code_word();
-	void vc_22_set_pal();
-	void vc_23_set_pri();
-	void vc_24_set_image_xy();
-	void vc_25_halt_thread();
+	void vc_22_set_palette();
+	void vc_23_set_priority();
+	void vc_24_set_sprite_xy();
+	void vc_25_halt_sprite();
 	void vc_26_set_window();
 	void vc_27_reset();
 	void vc_27_reset_simon1();
@@ -660,7 +660,7 @@
 	void vc_56_no_op();
 	void vc_57_no_op();
 	void vc_59();
-	void vc_60_kill_thread();
+	void vc_60_kill_sprite();
 	void vc_61_sprite_change();
 	void vc_62_palette_thing();
 	void vc_63_palette_thing_2();

Index: vga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- vga.cpp	24 May 2003 09:05:25 -0000	1.54
+++ vga.cpp	24 May 2003 12:13:23 -0000	1.55
@@ -33,7 +33,7 @@
 	NULL,
 	&SimonState::vc_1_dummy_op,
 	&SimonState::vc_2_call,
-	&SimonState::vc_3_new_thread,
+	&SimonState::vc_3_new_sprite,
 	&SimonState::vc_4_dummy_op,
 	&SimonState::vc_5_skip_if_neq,
 	&SimonState::vc_6_skip_ifn_sib_with_a,
@@ -52,10 +52,10 @@
 	&SimonState::vc_19_chain_to_script,
 	&SimonState::vc_20_set_code_word,
 	&SimonState::vc_21_jump_if_code_word,
-	&SimonState::vc_22_set_pal,
-	&SimonState::vc_23_set_pri,
-	&SimonState::vc_24_set_image_xy,
-	&SimonState::vc_25_halt_thread,
+	&SimonState::vc_22_set_palette,
+	&SimonState::vc_23_set_priority,
+	&SimonState::vc_24_set_sprite_xy,
+	&SimonState::vc_25_halt_sprite,
 	&SimonState::vc_26_set_window,
 	&SimonState::vc_27_reset,
 	&SimonState::vc_28_dummy_op,
@@ -90,7 +90,7 @@
 	&SimonState::vc_57_no_op,
 	&SimonState::vc_58,
 	&SimonState::vc_59,
-	&SimonState::vc_60_kill_thread,
+	&SimonState::vc_60_kill_sprite,
 	&SimonState::vc_61_sprite_change,
 	&SimonState::vc_62_palette_thing,
 	&SimonState::vc_63_palette_thing_2,
@@ -264,7 +264,7 @@
 	_vc_ptr = vc_ptr_org;
 }
 
-void SimonState::vc_3_new_thread() {
+void SimonState::vc_3_new_sprite() {
 	uint16 a, b, c, d, e, f;
 	uint16 res;
 	VgaSprite *vsp;
@@ -1089,7 +1089,7 @@
 	}
 }
 
-void SimonState::vc_22_set_pal() {
+void SimonState::vc_22_set_palette() {
 	uint a = vc_read_next_word();
 	uint b = vc_read_next_word();
 	uint num = a == 0 ? 0x20 : 0x10;
@@ -1113,7 +1113,7 @@
 	_vga_sprite_changed++;
 }
 
-void SimonState::vc_23_set_pri() {
+void SimonState::vc_23_set_priority() {
 	VgaSprite *vsp = find_cur_sprite(), *vus2;
 	uint16 pri = vc_read_next_word();
 	VgaSprite bak;
@@ -1152,7 +1152,7 @@
 	_vga_sprite_changed++;
 }
 
-void SimonState::vc_24_set_image_xy() {
+void SimonState::vc_24_set_sprite_xy() {
 	VgaSprite *vsp = find_cur_sprite();
 	vsp->image = vc_read_var_or_word();
 
@@ -1172,7 +1172,7 @@
 	_vga_sprite_changed++;
 }
 
-void SimonState::vc_25_halt_thread() {
+void SimonState::vc_25_halt_sprite() {
 	VgaSprite *vsp = find_cur_sprite();
 	while (vsp->id != 0) {
 		memcpy(vsp, vsp + 1, sizeof(VgaSprite));
@@ -1598,7 +1598,7 @@
 
 	vc_ptr = _vc_ptr;
 	_vc_ptr = (byte *)&tmp;
-	vc_23_set_pri();
+	vc_23_set_priority();
 
 	_vc_ptr = vc_ptr;
 	_vga_cur_sprite_id = sprite;
@@ -1639,7 +1639,7 @@
 
 	vsp = find_cur_sprite();
 	if (vsp->id) {
-		vc_25_halt_thread();
+		vc_25_halt_sprite();
 
 		vte = _vga_timer_list;
 		while (vte->delay != 0) {
@@ -1658,7 +1658,7 @@
 	_vc_ptr = vc_org;
 }
 
-void SimonState::vc_60_kill_thread() {
+void SimonState::vc_60_kill_sprite() {
 	uint file;
 
 	if (_game & GF_SIMON2) {





More information about the Scummvm-git-logs mailing list