예제 #1
0
        public void GetNumberBetween(int numberOfGladiators)
        {
            var factory   = new GladiatorFactory();                     // na zewnatrz
            var colossemu = new Colosseum(numberOfGladiators, factory); // tylko lista z gladiatorami

            colossemu.SetView(this);
            colossemu.IsAGameThereAreVictims();
            colossemu.LetsGetReadyToRumble();
        }
예제 #2
0
 public Colosseum(int amoutGladiators, GladiatorFactory factory)
 {
     _factory             = factory;
     _numberOfContestants = amoutGladiators;
 }