C# Class PathfindingTest.Selection.SelectRectangle

Show file Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Private Properties

Property Type Description
Draw void
init void

Public Methods

Method Description
GetRectangle ( ) : Rectangle
Normalize ( Rectangle rect ) : Rectangle

Normalizes the rectangle, so it has positive widths and heights

SelectRectangle ( ) : System
SelectRectangle ( Rectangle rect ) : System
SetRectangle ( Rectangle rect ) : void

Sets the rectangle of the outer dimensions of the select rectangle

Private Methods

Method Description
Draw ( SpriteBatch sb ) : void
init ( ) : void

Method Details

GetRectangle() public method

public GetRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Normalize() public method

Normalizes the rectangle, so it has positive widths and heights
public Normalize ( Rectangle rect ) : Rectangle
rect Microsoft.Xna.Framework.Rectangle The rect to normalize
return Microsoft.Xna.Framework.Rectangle

SelectRectangle() public method

public SelectRectangle ( ) : System
return System

SelectRectangle() public method

public SelectRectangle ( Rectangle rect ) : System
rect Microsoft.Xna.Framework.Rectangle
return System

SetRectangle() public method

Sets the rectangle of the outer dimensions of the select rectangle
public SetRectangle ( Rectangle rect ) : void
rect Microsoft.Xna.Framework.Rectangle
return void