C# Class RolePlayV21.BeastArmy

Mostra file Open project: perl-easj/OOProg Class Usage Examples

Public Methods

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

Add one Beast to the army
public AddBeast ( RolePlayV21.Beast aBeast ) : void
aBeast RolePlayV21.Beast
return void

BeastArmy() public method

public BeastArmy ( ) : System.Collections.Generic
return System.Collections.Generic

DealDamage() public method

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

ReceiveDamage() public method

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