Exemplo n.º 1
0
 public void ReceiveDamages(int damages)
 {
     if (firstLine.Alive())
     {
         firstLine.ReceiveDamages(damages);
     }
     else
     {
         lastLine.ReceiveDamages(damages);
     }
 }
Exemplo n.º 2
0
 public bool Finished()
 {
     return(!army.Alive() || !monster.Alive());
 }
Exemplo n.º 3
0
 public bool Alive()
 {
     return(firstLine.Alive() && lastLine.Alive());
 }