Метод | Описание | |
---|---|---|
BoardElement ( Microsoft.Xna.Framework.Game game, |
Creates a new BoardGUIElement for the given parameters.
|
|
ClearMarks ( ) : void |
Clears the board for all markings.
|
|
Draw ( |
||
HandleClick ( int x, int y ) : bool | ||
MarkSquare ( int x, int y, bool positive ) : void |
Marks a square on the board with a transparent color.
|
|
Update ( |
Метод | Описание | |
---|---|---|
CalcBoardSquare ( int mouseX, int mouseY ) : Point | ||
CalcScreenVector ( int boardX, int boardY ) : Vector2 | ||
DrawMark ( |
||
RightPosition ( |
public BoardElement ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | The current Game object. |
board | The Board to visualize. | |
role | Role | The Role determines how much of the Board is visible. |
Результат | System |
public Draw ( |
||
draw | ||
Результат | void |
public MarkSquare ( int x, int y, bool positive ) : void | ||
x | int | The x-coordinate of the square on the board. |
y | int | The y-coordinate of the square on the board. |
positive | bool | True if the highlight should indicate a eligible. False if it should indicate inaccessibility. |
Результат | void |
public Update ( |
||
gameTime | ||
Результат | void |