2003-12-16 02:10:15 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2005-01-01 16:09:25 +00:00
|
|
|
* Copyright (C) 2003-2005 The ScummVM project
|
2003-12-16 02:10:15 +00:00
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
|
|
|
|
* This program 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 this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BSCOLLISION_H
|
|
|
|
#define BSCOLLISION_H
|
|
|
|
|
|
|
|
/*#include "objectman.h"
|
|
|
|
|
2004-01-11 15:47:41 +00:00
|
|
|
namespace Sword1 {
|
2003-12-16 02:10:15 +00:00
|
|
|
|
2004-01-11 15:47:41 +00:00
|
|
|
class Logic;
|
|
|
|
|
|
|
|
class Collision {
|
2003-12-16 02:10:15 +00:00
|
|
|
public:
|
2004-01-11 15:47:41 +00:00
|
|
|
Collision(ObjectMan *pObjMan, Logic *pLogic);
|
|
|
|
~Collision(void);
|
2003-12-16 02:10:15 +00:00
|
|
|
void checkCollisions(void);
|
|
|
|
void fnBumpOff(void);
|
|
|
|
void fnBumpOn(void);
|
|
|
|
private:
|
|
|
|
int32 getIntersect(int32 x0, int32 y0, int32 x1, int32 y1, int32 x2, int32 y2, int32 x3, int32 y3);
|
|
|
|
int noCol;
|
|
|
|
ObjectMan *_objMan;
|
2004-01-11 15:47:41 +00:00
|
|
|
Logic *_logic; // for CFN_preset_script
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Sword1
|
|
|
|
*/
|
|
|
|
// maybe it's better to make this part of Router
|
2003-12-16 02:10:15 +00:00
|
|
|
|
|
|
|
#endif // BSCOLLISION_H
|