18 #include "precompiled.h"
37 return "fail_no_obstruction";
39 return "fail_obstructs_foundation";
41 return "fail_terrain_class";
43 debug_warn(L
"Unexpected result from CheckFoundation");
54 DEFINE_INTERFACE_METHOD_3("SetDisableBlockMovementPathfinding",
void, ICmpObstruction, SetDisableBlockMovementPathfinding,
bool,
bool, int32_t)
A simple fixed-point number class.
#define DEFINE_INTERFACE_METHOD_3(scriptname, rettype, classname, methodname, arg1, arg2, arg3)
#define DEFINE_INTERFACE_METHOD_2(scriptname, rettype, classname, methodname, arg1, arg2)
#define END_INTERFACE_WRAPPER(iname)
#define DEFINE_INTERFACE_METHOD_1(scriptname, rettype, classname, methodname, arg1)
Flags an entity as obstructing movement for other units, and handles the processing of collision quer...
#define DEFINE_INTERFACE_METHOD_0(scriptname, rettype, classname, methodname)
virtual EFoundationCheck CheckFoundation(std::string className)=0
Test whether this entity is colliding with any obstruction that are set to block the creation of foun...
#define debug_warn(expr)
display the error dialog with the given text.
#define BEGIN_INTERFACE_WRAPPER(iname)
u32 entity_id_t
Entity ID type.
virtual std::string CheckFoundation_wrapper(std::string className, bool onlyCenterPoint)
CheckFoundation wrapper for script calls, to return friendly strings instead of an EFoundationCheck...