diff options
Diffstat (limited to 'include/throwables.h')
| -rw-r--r-- | include/throwables.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/throwables.h b/include/throwables.h new file mode 100644 index 0000000..7a6d4eb --- /dev/null +++ b/include/throwables.h @@ -0,0 +1,32 @@ +#ifndef INCLUDE_THROWABLES +#define INCLUDE_THROWABLES + +#include <projectbase/project_base.h> + +#include "players.h" +#include "objects.h" +#include "map.h" +#include "guns.h" + +typedef enum t_throwable_type +{ + THROWABLE_GRENADE, +} throwable_type; + +typedef struct t_throwable { + u32 player_id; + bool active; + throwable_type type; + vec3f position; + vec3f direction; + float alive_time; +} throwable; + +throwable throwables[500] = {0}; +int max_throwables = 500; + +void clear_throwables(); +void throw_throwable(platform_window* window, u32 id, throwable_type type, float dirx, float diry); +void draw_throwables(platform_window* window); + +#endif
\ No newline at end of file |
