comparison carNode.c @ 91:cb6c6de125dc

halfway
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 26 May 2011 14:44:03 +0900
parents 8edae89a3877
children 0b65ca27f113
comparison
equal deleted inserted replaced
90:8edae89a3877 91:cb6c6de125dc
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <stdlib.h> 2 #include <stdlib.h>
3 //#include "libps2.h" 3 #include "libps2.h"
4 //#include "ps2util.h" 4 #include "ps2util.h"
5 #include "car.h" 5 #include "car.h"
6 #include "game.h" 6 #include "game.h"
7 #include "carNode.h"
7 8
8 /* --- car.c --- */ 9 /* --- car.c --- */
9 extern void car_destroy(CarPtr car); 10 extern void car_destroy(CarPtr car);
10 11
11 static CarPtr car_list; 12 static CarPtr car_list;
21 while (p->next) p = p->next; 22 while (p->next) p = p->next;
22 p->next = new; 23 p->next = new;
23 } 24 }
24 } 25 }
25 26
26 /* 27
27 void 28 void
28 carNode_draw() 29 carNode_draw()
29 { 30 {
30 CarPtr p = car_list; 31 CarPtr p = car_list;
31 32
32 while (p) { 33 while (p) {
33 //ps2util_obj_Draw(p->body); 34 ps2util_obj_Draw(p->body);
34 p = p->next; 35 p = p->next;
35 } 36 }
36 } 37 }
37 */ 38
38 39
39 void 40 void
40 carNode_destroy() 41 carNode_destroy()
41 { 42 {
42 CarPtr p = car_list; 43 CarPtr p = car_list;