C# Class AIA.Selection

Selection class responsible for storing the area covered by the selection box Drawing method of the selection box Storing the list of objects currently selected
Inheritance: Sprite
Afficher le fichier Open project: ArtificialIntelligenceApproximations/AIA Class Usage Examples

Méthodes publiques

Méthode Description
ClearSelection ( ) : void
DrawHorizontalLine ( int yPosition, SpriteBatch p_SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D _Texture ) : void
DrawSelectionBox ( SpriteBatch p_SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D _Texture ) : void
DrawVerticalLine ( int xPosition, SpriteBatch p_SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D _Texture ) : void
KeyboardListener ( KeyboardState CurrentKeyboardState, KeyboardState LastKeyboardState, Microsoft.Xna.Framework.Input.MouseState CurrentMouseState, Microsoft.Xna.Framework.Input.MouseState LastMouseState ) : void
Selection ( BuildingManager BuildingManager ) : System
UpdateSelectionBox ( int width, int height ) : void
UpdateSelectionUnit ( BaseUnit unit ) : void
UpdateStartingPoint ( int x, int y ) : void

Method Details

ClearSelection() public méthode

public ClearSelection ( ) : void
Résultat void

DrawHorizontalLine() public méthode

public DrawHorizontalLine ( int yPosition, SpriteBatch p_SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D _Texture ) : void
yPosition int
p_SpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
_Texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

DrawSelectionBox() public méthode

public DrawSelectionBox ( SpriteBatch p_SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D _Texture ) : void
p_SpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
_Texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

DrawVerticalLine() public méthode

public DrawVerticalLine ( int xPosition, SpriteBatch p_SpriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D _Texture ) : void
xPosition int
p_SpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
_Texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

KeyboardListener() public méthode

public KeyboardListener ( KeyboardState CurrentKeyboardState, KeyboardState LastKeyboardState, Microsoft.Xna.Framework.Input.MouseState CurrentMouseState, Microsoft.Xna.Framework.Input.MouseState LastMouseState ) : void
CurrentKeyboardState Microsoft.Xna.Framework.Input.KeyboardState
LastKeyboardState Microsoft.Xna.Framework.Input.KeyboardState
CurrentMouseState Microsoft.Xna.Framework.Input.MouseState
LastMouseState Microsoft.Xna.Framework.Input.MouseState
Résultat void

Selection() public méthode

public Selection ( BuildingManager BuildingManager ) : System
BuildingManager BuildingManager
Résultat System

UpdateSelectionBox() public méthode

public UpdateSelectionBox ( int width, int height ) : void
width int
height int
Résultat void

UpdateSelectionUnit() public méthode

public UpdateSelectionUnit ( BaseUnit unit ) : void
unit BaseUnit
Résultat void

UpdateStartingPoint() public méthode

public UpdateStartingPoint ( int x, int y ) : void
x int
y int
Résultat void