ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf/match.pm
(Generate patch)

Comparing deliantra/server/lib/cf/match.pm (file contents):
Revision 1.14 by root, Mon Oct 12 04:02:17 2009 UTC vs.
Revision 1.15 by root, Mon Oct 12 17:37:43 2009 UTC

118 118
119=item in map 119=item in map
120 120
121Replaces all objects by the objects that are on the same mapspace as them. 121Replaces all objects by the objects that are on the same mapspace as them.
122 122
123=item in <cond> 123=item in <condition>
124 124
125Finds all context objects matching the condition, and then puts their 125Finds all context objects matching the condition, and then puts their
126inventories into the context set. 126inventories into the context set.
127 127
128Note that C<in inv> is simply a special case of an C<< in <cond> >> that 128Note that C<in inv> is simply a special case of an C<< in <condition> >> that
129matches any object. 129matches any object.
130 130
131Example: find all spells inside potions inside the inventory of the context 131Example: find all spells inside potions inside the inventory of the context
132object(s). 132object(s).
133 133
324 empty = 324 empty =
325 325
326 # boolean matching condition 326 # boolean matching condition
327 327
328 condition = factor 328 condition = factor
329 | factor 'and'? cond 329 | factor 'and'? condition
330 | factor 'or' cond 330 | factor 'or' condition
331 331
332 factor = 'not' factor 332 factor = 'not' factor
333 | '(' cond ')' 333 | '(' condition ')'
334 | expr 334 | expr
335 | expr operator constant 335 | expr operator constant
336 336
337 operator = '=' | '==' | '!=' | '<' | '<=' | '>' | '>=' 337 operator = '=' | '==' | '!=' | '<' | '<=' | '>' | '>='
338 338

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines