示例#1
0
 private void WriteNames(IForest forest)
 {
     foreach (var creature in forest.GetCreatures())
     {
         Console.WriteLine("{0} - {1} with {2} lifes",
                           creature.GetSquareCode()[0],
                           creature.GetSquareCode(),
                           creature.GetAmountOfLifes());
     }
 }