XNACS1Lib: CSS490 Spring 2011
The XNACS1Rectangle type exposes the following members.
Properties
Name | Description | |
---|---|---|
Center |
Center of the primitive.
(Inherited from XNACS1Primitive.) |
|
CenterX |
X coordinate of the center position of the primitive.
(Inherited from XNACS1Primitive.) |
|
CenterY |
Y coordinate of the center position of the primitive.
(Inherited from XNACS1Primitive.) |
|
Color |
Color of the primitive. (undefined for PrimitiveSet).
(Inherited from XNACS1Primitive.) |
|
CurrentSpriteSheetFrameX |
Gets or Sets the zero-based current sprite column for sprite sheet drawing.
(Inherited from XNACS1Primitive.) |
|
CurrentSpriteSheetFrameY |
Gets or Sets the zero-based current sprite row for sprite sheet drawing.
(Inherited from XNACS1Primitive.) |
|
FrontDirection |
Sets the front direction of the primitive. Setting FrontDireciton will cause the RotateAngle and NormalDirection of the primitive to be updated
accordingly. y default, when RotateAngle is 0, FrontDireciton points towards (1,0) [positive X-direction].
E.g., if we set RotateAngle to 90-degrees, FrontDireciton will be updated accordinlgy to (0,1) [positive y-direciton], or
rotated 90-degress in the anit-clockwise direction
(Inherited from XNACS1Primitive.) |
|
Height |
Height of the rectangle.
|
|
Label |
Annotated text label to be associated with the primitive.
(Inherited from XNACS1Primitive.) |
|
LabelColor |
Color of the anontated text label.
(Inherited from XNACS1Primitive.) |
|
LowerLeft |
Lower left corner of the rectangle.
|
|
MaxBound |
Upper left corner of the primitive.
(Inherited from XNACS1Primitive.) |
|
MinBound |
Lower left corner of the Primitive.
(Inherited from XNACS1Primitive.) |
|
NormalDirection |
Get or Set the normal direction of the primitive. Setting NormalDirection will update RotateAngle and FrontDirection accordingly.
(Inherited from XNACS1Primitive.) |
|
RotateAngle |
Rotate the primitive by the Angle specified (in degree). After the rotation, the FrontDirection of the primitive
will be udpated accordingly. By default, when RotateAngle is 0, FrontDireciton points towards (1,0) [positive X-direction].
E.g., if we set RotateAngle to 90-degrees, FrontDireciton will be updated accordinlgy to (0,1) [positive y-direciton], or
rotated 90-degress in the anit-clockwise direction
(Inherited from XNACS1Primitive.) |
|
ShouldTravel |
Defines if the primitive should move by its current velocity. Defaults to false.
(Inherited from XNACS1Primitive.) |
|
Size |
Get/Set width/height of the primitive.
(Inherited from XNACS1Primitive.) |
|
SizeX |
Width of the primitive.
(Inherited from XNACS1Primitive.) |
|
SizeY |
Height of the primitive. For PrimitiveCircle (diameter), PrimitiveRectangle (height), PrimitiveSet (undefined).
(Inherited from XNACS1Primitive.) |
|
Speed |
Get/Set the speed (magnitude of the Velocity vector) for the velocity.
(Inherited from XNACS1Primitive.) |
|
Texture |
Texture file name (without the "." or the extension) to cover the primitive.
(Inherited from XNACS1Primitive.) |
|
TextureTintColor |
If a primitive has a texture assigned, this will change the tint and or opacity
of the texture when drawn, Color.White is no tint or opacity.
(Inherited from XNACS1Primitive.) |
|
UseSpriteSheet |
Allow the primitive to draw as a sprite sheet.
(Inherited from XNACS1Primitive.) |
|
UseSpriteSheetAnimation |
Allow the primitive to follow a specified sprite sheet animation sequence.
(Inherited from XNACS1Primitive.) |
|
Velocity |
Velocity of a primitive. This is a true velocity: with magnitude (speed) and direction for tavel.
(Inherited from XNACS1Primitive.) |
|
VelocityDirection |
Get/Set the direction of the velocity.
(Inherited from XNACS1Primitive.) |
|
VelocityX |
Get/Set the x-component of the primitive velocity.
(Inherited from XNACS1Primitive.) |
|
VelocityY |
Get/Set the y-component of the primitive velocity.
(Inherited from XNACS1Primitive.) |
|
Visible |
Whether the primitive is visible.
(Inherited from XNACS1Primitive.) |
|
Width |
Width of the rectangle.
|