2017-11-30 21:00:47 +01:00
|
|
|
#ifndef POSITION_H_
|
|
|
|
#define POSITION_H_
|
|
|
|
|
2017-12-13 23:20:54 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2017-11-30 21:00:47 +01:00
|
|
|
typedef struct {
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
} Position;
|
|
|
|
|
2017-12-05 15:03:20 +01:00
|
|
|
Position position_to_matrix_coords(Position*);
|
|
|
|
|
2017-12-06 11:44:17 +01:00
|
|
|
Position position_to_room_coords(Position*);
|
|
|
|
|
2017-12-13 23:20:54 +01:00
|
|
|
bool position_in_room(Position *pos, Position *roomPos);
|
|
|
|
|
2017-11-30 21:00:47 +01:00
|
|
|
#endif // POSITION_H_
|