C# Class Descent.GUI.Screens.AttackElement

Displays the attack state with the dice used (and how they landed when rolled), the target monster or hero and the possible surge abilities that can be used to improve the result.
Inheritance: GUIElement
Afficher le fichier Open project: nezbo/Descent Class Usage Examples

Méthodes publiques

Méthode Description
AttackElement ( Microsoft.Xna.Framework.Game game, Attack attack, int x, int y, int width, int height ) : System.Collections.Generic

Creates a new AttackElement for the given parameters.

Draw ( SpriteBatch draw ) : void

Method Details

AttackElement() public méthode

Creates a new AttackElement for the given parameters.
public AttackElement ( Microsoft.Xna.Framework.Game game, Attack attack, int x, int y, int width, int height ) : System.Collections.Generic
game Microsoft.Xna.Framework.Game The current Game object.
attack Descent.Model.Event.Attack The Attack instance to visualize.
x int The top-left x-coordinate to start the attack box.
y int The top-left y-coordinate to start the attack box.
width int The width of the AttackElement.
height int The height of the AttackElement.
Résultat System.Collections.Generic

Draw() public méthode

public Draw ( SpriteBatch draw ) : void
draw Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void