Method | Description | |
---|---|---|
CreateBoardElement ( Microsoft.Xna.Framework.Game game, |
Creates a guielement that displays how the board looks like and keeps updated when the board changes.
|
|
CreateEquipmentElement ( Microsoft.Xna.Framework.Game game, int x, int y, string slotTitle, |
Creates an EquipmentElement for visualization of the properties of the given equipment. Using this method to create the element makes sure that all EquipmentElements in the game has the same dimensions and are equipped with proper click events.
|
|
CreateMenuElement ( Microsoft.Xna.Framework.Game game, Role role ) : |
||
CreateStateElement ( Microsoft.Xna.Framework.Game game, State state, Role role, |
Creates a GUIElement that fits the given parameters.
|
|
DrawDice ( |
Draws a given dice-type to the target GUIElement. By using this method to draw the EDice, you're sure it's drawn the same way every time.
|
|
DrawSurgeAbility ( |
Draws a visualization of a SurgeAbility on a target GUIElement. By using this method to draw the SurgeAbility, you're sure it's drawn the same way every time.
|
Method | Description | |
---|---|---|
CreateEmptyRoot ( Microsoft.Xna.Framework.Game game ) : |
||
LoadDiceTextures ( Microsoft.Xna.Framework.Game game ) : void | ||
RelH ( |
||
RelW ( |
public static CreateBoardElement ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | The current Game object. |
board | The Board to visualize. | |
role | Role | The Role to view the board from, for example /// the overlord may see the entire board from the beginning |
return |
public static CreateEquipmentElement ( Microsoft.Xna.Framework.Game game, int x, int y, string slotTitle, |
||
game | Microsoft.Xna.Framework.Game | The current Game object. |
x | int | Will be the top-left coordinate of the EquipmentElement. |
y | int | Will be the top-left coordinate of the EquipmentElement. |
slotTitle | string | In case that the equipment is null it will display this title for the missing equipment. |
equipment | The Equipment to visualize. Null here will indicate that the equipment slot is empty. | |
id | int | The game logic ID of this equipment, will be used for the click event. |
return |
public static CreateMenuElement ( Microsoft.Xna.Framework.Game game, Role role ) : |
||
game | Microsoft.Xna.Framework.Game | |
role | Role | |
return |
public static CreateStateElement ( Microsoft.Xna.Framework.Game game, State state, Role role, |
||
game | Microsoft.Xna.Framework.Game | The current Game object. |
state | State | The State to be visualized. |
role | Role | The Role to view the given state from. |
gameState | An object that holds some game properties that is needed for some States. | |
return |
public static DrawDice ( |
||
target | The GUIElement to display the dice in. | |
dice | EDice | The dice to display. |
x | int | The top-left x-coordinate to start drawing from. |
y | int | The top-left y-coordinate to start drawing from. |
size | int | The width and height in pixels. |
return | void |
public static DrawSurgeAbility ( |
||
target | The GUIElement to draw the SurgeAbility on. | |
ability | The SurgeAbility to display. | |
xPosition | int | The top-left x-coordinate to start drawing from. |
yPosition | int | The top-left y-coordinate to start drawing from. |
small | bool | True if the surge ability should be drawn as compact as possible, else false. |
return | void |