Ejemplo n.º 1
0
 public FigureBlueprint(int id, IFigureType figureType)
 {
     PlayerId = id;
     UnitName = figureType.UnitName;
     Hp       = figureType.FullHp;
 }
Ejemplo n.º 2
0
 public double DefenceCalculation(IFigureType figureType)
 => FigureType.DefenceCalculation(figureType);
Ejemplo n.º 3
0
 public FigureBlueprint(int id, IFigureType figureType, double hp)
 {
     PlayerId = id;
     UnitName = figureType.UnitName;
     Hp       = hp;
 }
Ejemplo n.º 4
0
 public double AttackCalculation(IFigureType figureType)
 => FigureType.AttackCalculation(figureType);
Ejemplo n.º 5
0
 public Figure(Player owner, IFigureType figureType)
 {
     Owner      = owner;
     FigureType = figureType;
     Hp         = figureType.FullHp;
 }
Ejemplo n.º 6
0
 public Figure(Player owner, IFigureType figureType, double hp)
 {
     Hp         = hp;
     Owner      = owner;
     FigureType = figureType;
 }
Ejemplo n.º 7
0
 public double DefenceCalculation(IFigureType figureType)
 => figureType.Attack;
Ejemplo n.º 8
0
 public double AttackCalculation(IFigureType figureType)
 => figureType.DefenceCalculation(this);