![]() |
![]() | ![]() |
![]() |
| |||
|
Statics Methods Relevant to BooleanBvr Objects
and Creates a Boolean behavior that represents the logical AND of the given behaviors. keyState Creates a Boolean behavior that describes whether the key is up or down. not Creates a Boolean behavior that represents the logical NOT of the given behavior. or Creates a Boolean behavior that represents the logical OR of the given behaviors. toBvr Converts a Boolean to a BooleanBvr. and
Statics ClassCreates 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.
Syntax
public static BooleanBvr and( BooleanBvr b1, BooleanBvr b2 );
Parameters
- b1 and b2
- BooleanBvr objects to combine.
Return Value
Returns the BooleanBvr object.
See Also
keyState
Statics ClassCreates a Boolean behavior that describes whether the key is up or down.
Syntax
public static BooleanBvr keyState( int keyCode );
Parameters
- keyCode
- Can either be quoted characters, such as 'a' or specific Java keycode constants.
Return Value
Returns the BooleanBvr object. The value is TRUE when the key is down and FALSE when the key is up.
not
Statics ClassCreates 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.
Syntax
public static BooleanBvr not( BooleanBvr b );
Parameters
- b
- BooleanBvr object to apply the operation to.
Return Value
Returns the BooleanBvr object.
See Also
or
Statics ClassCreates a Boolean behavior that represents the logical OR of the given behaviors. The behavior's value is true when either b1 or b2 are true; otherwise it is false.
Syntax
public static BooleanBvr or( BooleanBvr b1, BooleanBvr b2 );
Parameters
- b1 and b2
- BooleanBvr objects to combine.
Return Value
Returns the BooleanBvr object.
See Also
toBvr
Statics ClassConverts a Boolean to a BooleanBvr. The only time toBvr is used is when converting Java numbers, Booleans, or strings to their corresponding Microsoft® DirectAnimation types. It is not used for constants such as red, yVector3, and origin2 because these are defined as constant behaviors.
Syntax
public static BooleanBvr toBvr( boolean bool );
Parameters
- bool
- Java Boolean type to be converted.
Return Value
Returns the BooleanBvr object.
Top of Page
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.