C# Class Gruppe22.Backend.Ability

The class used to create
Show file Open project: propra13-orga/gruppe22 Class Usage Examples

Public Methods

Method Description
Ability ( int cost = 2, int intensity = 1, int duration, int cooldown = 5, AbilityTarget target = AbilityTarget.None, AbilityElement element = AbilityElement.None, string name = "", string description = "" ) : System

The constructor for an ability setting default values.

GenerateName ( ) : void

Method to generate the name of an ability The name is determined by the target and element

GetIcon ( ) : void

Method to get the icon for an ability from data

Load ( XmlReader reader ) : void

Loading method

Save ( XmlWriter xmlw ) : void

Saving method

Method Details

Ability() public method

The constructor for an ability setting default values.
public Ability ( int cost = 2, int intensity = 1, int duration, int cooldown = 5, AbilityTarget target = AbilityTarget.None, AbilityElement element = AbilityElement.None, string name = "", string description = "" ) : System
cost int by default 2
intensity int by default 1
duration int by default 0
cooldown int by default 5
target AbilityTarget
element AbilityElement
name string
description string
return System

GenerateName() public method

Method to generate the name of an ability The name is determined by the target and element
public GenerateName ( ) : void
return void

GetIcon() public method

Method to get the icon for an ability from data
public GetIcon ( ) : void
return void

Load() public method

Loading method
public Load ( XmlReader reader ) : void
reader System.Xml.XmlReader
return void

Save() public method

Saving method
public Save ( XmlWriter xmlw ) : void
xmlw XmlWriter
return void