1 /* $Id: util.h,v 1.22 2005/06/29 05:49:21 oohara Exp $ */ 2 3 #ifndef __DANGEN_UTIL_H__ 4 #define __DANGEN_UTIL_H__ 5 6 #include "tenm_object.h" 7 8 int util_init(int width, int height); 9 void util_quit(void); 10 11 int draw_string(int x, int y, const char *string, int length); 12 int draw_string_int(int x, int y, const int *string, int length); 13 14 int in_window_object(const tenm_object *p); 15 int in_window_primitive(const tenm_primitive *p); 16 17 void vector_rotate(double *result, const double *v, int theta); 18 void vector_rotate_bounded(double *result, const double *v, 19 const double *a, int theta); 20 21 /* table manipulation function */ 22 int delete_enemy_shot(tenm_object *my, int n); 23 int delete_enemy(tenm_object *my, int n); 24 25 #endif /* not __DANGEN_UTIL_H__ */ 26