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
Show file Open project: nezbo/Descent Class Usage Examples

Public Methods

Method 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 method

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.
return System.Collections.Generic

Draw() public method

public Draw ( SpriteBatch draw ) : void
draw Microsoft.Xna.Framework.Graphics.SpriteBatch
return void