Force::ValidField
Defined in:
Returns a boolean value indicating whether the force can be assigned to a particular field node.
C4Forces.h
Prototype
static bool ValidField(const Field *field);
Description
The ValidField
function should be redefined by force subclasses. Its implementation should examine the field node pointed to by the field
parameter and return true
if the force type can be used with the field. If the force type cannot be used, the ValidField
function should return false
. If the ValidField
function is not redefined for a registered subclass of the Force
class, then that force type can be assigned to any field node.
See Also