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 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.

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

or, not

keyState

Statics Class

Creates 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 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.

Syntax

public static BooleanBvr not( BooleanBvr b );

Parameters

b
BooleanBvr object to apply the operation to.

Return Value

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

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 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 Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.