C# Класс 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
Наследование: Sprite
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ClearSelection() публичный Метод

public ClearSelection ( ) : void
Результат void

DrawHorizontalLine() публичный Метод

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
Результат void

DrawSelectionBox() публичный Метод

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
Результат void

DrawVerticalLine() публичный Метод

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
Результат void

KeyboardListener() публичный Метод

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
Результат void

Selection() публичный Метод

public Selection ( BuildingManager BuildingManager ) : System
BuildingManager BuildingManager
Результат System

UpdateSelectionBox() публичный Метод

public UpdateSelectionBox ( int width, int height ) : void
width int
height int
Результат void

UpdateSelectionUnit() публичный Метод

public UpdateSelectionUnit ( BaseUnit unit ) : void
unit BaseUnit
Результат void

UpdateStartingPoint() публичный Метод

public UpdateStartingPoint ( int x, int y ) : void
x int
y int
Результат void