C# 클래스 RolePlayV21.BeastArmy

파일 보기 프로젝트 열기: perl-easj/OOProg 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddBeast() 공개 메소드

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

BeastArmy() 공개 메소드

public BeastArmy ( ) : System.Collections.Generic
리턴 System.Collections.Generic

DealDamage() 공개 메소드

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

ReceiveDamage() 공개 메소드

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