- Joined
- Jul 10, 2007
- Messages
- 6,306
Changed around vexorian's BoolExprUtilities to be better in my opinion ^_^.
Instead of using BOOLEXPR_TRUE and BOOLEXPR_FALSE, you would just use TRUE and FALSE : D.
so
Instead of using BOOLEXPR_TRUE and BOOLEXPR_FALSE, you would just use TRUE and FALSE : D.
so
JASS:
//vex's
EnumDestructablesInRect(rect, BOOLEXPR_TRUE, function Hi)
//update with cJASS
EnumDestructablesInRect(rect, TRUE, function hi)
JASS:
//http://www.wc3c.net/showthread.php?t=101248
define
{
<TRUE> = BoolexprUtils_BOOLEXPR_TRUE
<FALSE> = BoolexprUtils_BOOLEXPR_FALSE
}
library BoolexprUtils initializer init
{
public boolexpr BOOLEXPR_TRUE;
public boolexpr BOOLEXPR_FALSE;
private bool rettrue()
{
return true;
}
private bool retfalse()
{
return false;
}
private void init()
{
BOOLEXPR_TRUE = Condition(function rettrue);
BOOLEXPR_FALSE = Condition(function retfalse);
}
}