Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/test_render/Application/bullet_action.cc @ 539:7b4434d6f078
SGList isn't used
author | tkaito@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 21 Oct 2009 19:56:00 +0900 |
parents | d47c5d865970 |
children |
comparison
equal
deleted
inserted
replaced
535:f8d56635efb8 | 539:7b4434d6f078 |
---|---|
1 #include <math.h> | 1 #include <math.h> |
2 #include "SceneGraphRoot.h" | 2 #include "SceneGraphRoot.h" |
3 #include "SGList.h" | |
4 #include "hit_judge.h" | 3 #include "hit_judge.h" |
5 #define PI M_PI | 4 #define PI M_PI |
6 | 5 |
7 int i = 0; | 6 int i = 0; |
8 | 7 |
34 } | 33 } |
35 | 34 |
36 void | 35 void |
37 bullet_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree) | 36 bullet_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree) |
38 { | 37 { |
38 #if 0 | |
39 SceneGraphIteratorPtr it = sgroot->getIterator(tree); | 39 SceneGraphIteratorPtr it = sgroot->getIterator(tree); |
40 //static int damage = 0; | 40 //static int damage = 0; |
41 | 41 |
42 for (; it->hasNext(E_PLANE);) { | 42 for (; it->hasNext(E_PLANE);) { |
43 it->next(E_PLANE); | 43 it->next(E_PLANE); |
60 node->remove(); | 60 node->remove(); |
61 //scene_graph->delete_object(node, node->next,node->prev); | 61 //scene_graph->delete_object(node, node->next,node->prev); |
62 //i -= 1; | 62 //i -= 1; |
63 //printf("bullet_delete:残り弾数=%d\n",i); | 63 //printf("bullet_delete:残り弾数=%d\n",i); |
64 } | 64 } |
65 #endif | |
65 } | 66 } |