static void Main(string[] args) { Repository repo = new Repository(10); repo.add_item(1, 9, false); IProjection valueProjection = new Projections.AllUnitProjection(repo); IProjection occupiedProjection = new Projections.SpaceOccupiedProjection(repo); IProjection threatenedProjection = new Projections.ThreatenedProjection(repo); Console.WriteLine("Values"); valueProjection.present(); Console.WriteLine(""); Console.WriteLine("Occupation"); occupiedProjection.present(); Console.WriteLine(""); Console.WriteLine("Threatened"); threatenedProjection.present(); Console.WriteLine(""); Console.Read(); }
public UnitAdditionHandler(Repository repo) { _repo = repo; }
public void startup() { _repo = new Repository(3); }