2020-09-22 13:20:16 +02:00
|
|
|
#ifndef _DEF_PLAYER_COLLIDE
|
|
|
|
#define _DEF_PLAYER_COLLIDE
|
|
|
|
|
|
|
|
#include <gint/defs/types.h>
|
2020-09-28 12:53:04 +02:00
|
|
|
#include <stdbool.h>
|
2020-09-22 13:20:16 +02:00
|
|
|
|
|
|
|
#include "conf.h"
|
|
|
|
#include "level.h"
|
|
|
|
|
2020-12-22 10:53:01 +01:00
|
|
|
/* Return tile at the given position.
|
|
|
|
* 0 is out of bound or empty. */
|
2020-09-22 13:20:16 +02:00
|
|
|
uint8_t collide_point(Vec point, const Level *level, uint layer);
|
2020-12-22 10:53:01 +01:00
|
|
|
bool player_collide(Player *player, Vec position, const Level *level, uint layer_id);
|
2020-09-22 13:20:16 +02:00
|
|
|
|
|
|
|
#endif /* _DEF_PLAYER_COLLIDE */
|