DirectAnimation Animated Header --Static Methods Relevant to BooleanBvr Objects DirectAnimation Animated Header --Static Methods Relevant to BooleanBvr Objects* Microsoft DirectAnimation SDK
*Contents  *Index  *Topic Contents
*Previous Topic: Static Methods Relevant to Behavior Objects
*Next Topic: Static Fields Relevant to BooleanBvr Objects

Static Methods Relevant to BooleanBvr Objects



and

Statics Class

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
  );

Parameters
b1 and b2
The BooleanBvr objects to combine.
Return Values

Returns the BooleanBvr object.

See Also

or, not


keyState

Statics Class

Creates a boolean behavior that describes whether the key is up or down.

public static BooleanBvr keyState(
  int keyCode
  );

Parameters
keyCode
Can either be quoted characters, such as 'a' or specific Java keycode constants.
Return Values

Returns the BooleanBvr object. The value is TRUE when the key is down and FALSE when the key is up.


not

Statics Class

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
  );

Parameters
b
The BooleanBvr object to apply the operation to.
Return Values

Returns the BooleanBvr object.

See Also

and , or


or

Statics Class

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
  );

Parameters
b1 and b2
The BooleanBvr objects to combine.
Return Values

Returns the BooleanBvr object.

See Also

and, not


toBvr

Statics Class

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
  );

Parameters
bool
The Java boolean type to be converted.
Return Values

Returns the BooleanBvr object.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page