2007-11-25 19:42:40 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
2008-01-12 17:09:00 +00:00
|
|
|
#ifndef GAME_MAPRES_COL_H
|
|
|
|
#define GAME_MAPRES_COL_H
|
|
|
|
|
2008-08-14 17:19:13 +00:00
|
|
|
#include <base/vmath.hpp>
|
2007-05-22 15:03:32 +00:00
|
|
|
|
2008-09-23 14:10:05 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
COLFLAG_SOLID=1,
|
|
|
|
COLFLAG_DEATH=2,
|
|
|
|
};
|
|
|
|
|
2008-01-13 11:15:32 +00:00
|
|
|
int col_init();
|
|
|
|
int col_is_solid(int x, int y);
|
2008-09-23 14:10:05 +00:00
|
|
|
int col_get(int x, int y);
|
2007-12-16 20:31:33 +00:00
|
|
|
int col_width();
|
|
|
|
int col_height();
|
2007-08-22 07:52:33 +00:00
|
|
|
bool col_intersect_line(vec2 pos0, vec2 pos1, vec2 *out);
|
2008-01-12 17:09:00 +00:00
|
|
|
|
|
|
|
#endif
|