ïðèìåð public override void GetAttack Knowledge strikeTyp int power Ne

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ïðèìåð
public override void GetAttack(Knowledge strikeTyp, int power)
{
NextRound();
if(Otklonit(strikeTyp) != null)
{
UseEffect(strikeTyp, power);
if (strikeTyp.ActiveTime > 0 || strikeTyp.ActiveTime == -1) ActiveKnowledges.Add(strikeTyp);
}
}
abstract public Knowledge Otklonit(Knowledge nowledge)