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
파일 보기 프로젝트 열기: ArtificialIntelligenceApproximations/AIA 1 사용 예제들

공개 메소드들

메소드 설명
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