Create a new Rule object having the specified value.
Synopsis
Declared in <ball_ruleset.h>
int
addRule(Rule const& value);
Description
Return the non‐negative id of this non‐modifiable object on success, and a negative value otherwise. A return value of ‐1 indicates that another rule having this value already exists. A return value of ‐2 indicates that the maximum number of rules for this rule set has been reached.
Return Value
non‐negative id on success, or a negative value otherwise
Parameters
Name |
Description |
value |
rule to add |
Created with MrDocs