Mercurial > hg > Members > koba > t_dandy
comparison Character.c @ 7:23d54565aa7b
not working.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 15 Dec 2010 17:55:25 +0900 |
parents | 6382d8f6a973 |
children | 00c3272a801f |
comparison
equal
deleted
inserted
replaced
6:9a92435eaee6 | 7:23d54565aa7b |
---|---|
14 #include "sgoex.h" | 14 #include "sgoex.h" |
15 #include "collision.h" | 15 #include "collision.h" |
16 #include "debug.h" | 16 #include "debug.h" |
17 | 17 |
18 #include "error.h" | 18 #include "error.h" |
19 #include "state_task.h" | |
19 | 20 |
20 #define CHARACTER_MAX_POOL_SIZE 2048 | 21 #define CHARACTER_MAX_POOL_SIZE 2048 |
21 | 22 |
22 CHARACTER *active_chara_list; | 23 CHARACTER *active_chara_list; |
23 CHARACTER *free_chara_list; | 24 CHARACTER *free_chara_list; |
141 void state_update() | 142 void state_update() |
142 { | 143 { |
143 CHARACTER *p; | 144 CHARACTER *p; |
144 for(p = active_chara_list->next; p!= NULL ;p = p->next) | 145 for(p = active_chara_list->next; p!= NULL ;p = p->next) |
145 { | 146 { |
147 // SimpleStateTask(p); | |
146 p=(*p->state)(p); | 148 p=(*p->state)(p); |
147 } | 149 } |
148 } | 150 } |
149 | 151 |
150 void collision_detect() | 152 void collision_detect() |