From d88514229d181989c5ec061924db75d3f1d11e0b Mon Sep 17 00:00:00 2001 From: johns <> Date: Mon, 4 Jun 2001 14:27:50 +0000 Subject: [PATCH] Prototypes for UnitTypeCanMoveTo and UnitCanMoveTo added. --- src/include/map.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/map.h b/src/include/map.h index 519758301..acff88f09 100644 --- a/src/include/map.h +++ b/src/include/map.h @@ -506,6 +506,10 @@ extern int RockOnMap(int x,int y); extern int CheckedCanMoveToMask(int x,int y,int mask); /// Returns true, if the unit-type(mask) can enter the field extern int CanMoveToMask(int x,int y,int mask); + /// Returns true, if the unit-type can enter the field +extern int UnitTypeCanMoveTo(int x,int y,const UnitType* type); + /// Returns true, if the unit can enter the field +extern int UnitCanMoveTo(int x,int y,const Unit* unit); /// Preprocess map, for internal use. extern void PreprocessMap(void);