Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();


            LifeApplication = new LifeApplication();
            UserManager     = new UserManager.UserManager();


            LifeApplication.CreateLayout("Layout 1", 200);

            Layout1 l1 = new Layout1(LifeApplication.Layouts[0]);
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            // Standaard waarden zetten
            LifeApplication = new LifeApplication();
            UserManager     = new UserManager.UserManager();

            // Layouts maken
            LifeApplication.CreateLayout("Layout 1", 200);
            // Vooraf geprogrammeerde Layout inladen
            Layout1 l1 = new Layout1(LifeApplication.Layouts[0]);

            // Species maken
            LifeApplication.CreateSpecies("Dog", 800, 4, Digestion.OmnivorePlant, 10, 100, 100, 1000, 0, 950, 200);
            LifeApplication.CreateSpecies("Kat", 800, 4, Digestion.Carnivore, 10, 100, 100, 1000, 0, 950, 200);
            LifeApplication.CreateSpecies("Giraffe", 800, 4, Digestion.Herbivore, 10, 100, 100, 1000, 0, 950, 200);
            LifeApplication.CreateSpecies("Niksnut", 800, 4, Digestion.Nonivore, 10, 100, 100, 1000, 0, 950, 200);
            LifeApplication.CreateSpecies("Mens", 800, 4, Digestion.OmnivoreCreature, 10, 100, 100, 1000, 0, 950, 200);
        }