Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }