Creates a Boolean behavior that represents the logical AND of the given behaviors. The behavior's value is true when both b1 and b2 are true; otherwise, it is false.
public static BooleanBvr and(
BooleanBvr b1,
BooleanBvr b2
);
Returns the BooleanBvr object.
Creates a Boolean behavior that describes whether the key is up or down.
public static BooleanBvr keyState(
int keyCode
);
Returns the BooleanBvr object. The value is TRUE when the key is down and FALSE when the key is up.
Creates a Boolean behavior that represents the logical NOT of the given behavior. The behavior's value is true when b is false; otherwise, it is false.
public static BooleanBvr not(
BooleanBvr b
);
Returns the BooleanBvr object.
Creates a Boolean behavior that represents the logical OR of the given behaviors. The behavior's value true when either b1 or b2 are true; otherwise it is false.
public static BooleanBvr or(
BooleanBvr b1,
BooleanBvr b2
);
Returns the BooleanBvr object.
Converts a boolean to a BooleanBvr. The only time toBvr is used is when converting Java numbers, booleans, or strings to their corresponding DirectAnimation types. It is not used for constants such as red, yVector3, and origin2 because these are defined as constant behaviors.
public static BooleanBvr toBvr(
boolean bool
);
Returns the BooleanBvr object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.