C# Class RolePlayV21.BeastArmy

Afficher le fichier Open project: perl-easj/OOProg Class Usage Examples

Méthodes publiques

Méthode Description
AddBeast ( RolePlayV21.Beast aBeast ) : void

Add one Beast to the army

BeastArmy ( ) : System.Collections.Generic
DealDamage ( ) : int

DealDamage is defined as: The total damage dealt by all non-dead members of the army

ReceiveDamage ( int damage ) : void

ReceiveDamage is defined as: The first non-dead beast in the list receives all of the damage

Method Details

AddBeast() public méthode

Add one Beast to the army
public AddBeast ( RolePlayV21.Beast aBeast ) : void
aBeast RolePlayV21.Beast
Résultat void

BeastArmy() public méthode

public BeastArmy ( ) : System.Collections.Generic
Résultat System.Collections.Generic

DealDamage() public méthode

DealDamage is defined as: The total damage dealt by all non-dead members of the army
public DealDamage ( ) : int
Résultat int

ReceiveDamage() public méthode

ReceiveDamage is defined as: The first non-dead beast in the list receives all of the damage
public ReceiveDamage ( int damage ) : void
damage int
Résultat void