C# Class Project290.Screens.Shared.HypercubeDisplay

Used for displaying hypercubes.
Exibir arquivo Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
DisplayRectangle Microsoft.Xna.Framework.Rectangle

Public Methods

Method Description
Draw ( ) : void

Draws this instance.

HypercubeDisplay ( Rectangle displayRectangle, int hypercubeCount, Random random, float layerDepth ) : System

Initializes a new instance of the HypercubeDisplay class.

Set ( float x, float y ) : void

Sets the rectangle to the x, y specified.

SetLayerDepth ( float layerDepth ) : void

Sets the layer depth.

Update ( ) : void

Updates this instance.

Method Details

Draw() public method

Draws this instance.
public Draw ( ) : void
return void

HypercubeDisplay() public method

Initializes a new instance of the HypercubeDisplay class.
public HypercubeDisplay ( Rectangle displayRectangle, int hypercubeCount, Random random, float layerDepth ) : System
displayRectangle Microsoft.Xna.Framework.Rectangle The display rectangle.
hypercubeCount int The number of hypercubes.
random System.Random The PRNG.
layerDepth float The layer depth.
return System

Set() public method

Sets the rectangle to the x, y specified.
public Set ( float x, float y ) : void
x float The x.
y float The y.
return void

SetLayerDepth() public method

Sets the layer depth.
public SetLayerDepth ( float layerDepth ) : void
layerDepth float The layer depth.
return void

Update() public method

Updates this instance.
public Update ( ) : void
return void

Property Details

DisplayRectangle public_oe property

The bounding rectangle for the hypercubes and background.
public Rectangle,Microsoft.Xna.Framework DisplayRectangle
return Microsoft.Xna.Framework.Rectangle