C# Class PathfindingTest.Selection.SelectRectangle

Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Private Properties

Свойство Type Description
Draw void
init void

Méthodes publiques

Méthode 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

Méthode Description
Draw ( SpriteBatch sb ) : void
init ( ) : void

Method Details

GetRectangle() public méthode

public GetRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

Normalize() public méthode

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

SelectRectangle() public méthode

public SelectRectangle ( ) : System
Résultat System

SelectRectangle() public méthode

public SelectRectangle ( Rectangle rect ) : System
rect Microsoft.Xna.Framework.Rectangle
Résultat System

SetRectangle() public méthode

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