2007-03-12 22:54:04 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2006 The ScummVM project
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PARALLACTION_WALK_H
|
|
|
|
#define PARALLACTION_WALK_H
|
|
|
|
|
|
|
|
#include "parallaction/defs.h"
|
|
|
|
|
|
|
|
namespace Parallaction {
|
|
|
|
|
2007-04-07 10:02:59 +00:00
|
|
|
struct WalkNode : public Node {
|
|
|
|
int32 _x;
|
|
|
|
int32 _y;
|
|
|
|
|
|
|
|
public:
|
|
|
|
WalkNode();
|
|
|
|
WalkNode(int32 x, int32 y);
|
|
|
|
WalkNode(const WalkNode& w);
|
|
|
|
|
|
|
|
void getPoint(Common::Point &p) const;
|
|
|
|
};
|
|
|
|
|
2007-03-12 22:54:04 +00:00
|
|
|
|
|
|
|
WalkNode *buildWalkPath(uint16 x, uint16 y);
|
|
|
|
void jobWalk(void*, Job *j);
|
|
|
|
uint16 checkDoor();
|
|
|
|
void setPath(byte *path);
|
|
|
|
void initWalk();
|
|
|
|
uint16 queryPath(uint16 x, uint16 y);
|
|
|
|
|
2007-04-07 10:02:59 +00:00
|
|
|
|
|
|
|
|
2007-03-12 22:54:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|