33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*
|
|
* collider.h
|
|
* This file is part of Bean Counters Classic
|
|
*
|
|
* Copyright (C) 2018 - Félix Arreola Rodríguez
|
|
*
|
|
* Bean Counters Classic is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Bean Counters Classic is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with Bean Counters Classic; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef __COLLIDER_H__
|
|
#define __COLLIDER_H__
|
|
|
|
typedef struct _Collider Collider;
|
|
|
|
Collider * collider_new_from_file (const char *filename);
|
|
Collider * collider_new_block (int w, int h);
|
|
int collider_hittest (Collider *a, int x1, int y1, Collider *b, int x2, int y2);
|
|
|
|
#endif
|