Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello Cold Dead World.");
            Thread.Sleep(1000);
            Console.WriteLine("Would You Like To Play?");
            if (YES())
            {
                Game game = new Game();
                game.start();
            }
            else
            {
                //otherwise run simple econ simulator
                Economy e = new Economy();
                Console.Write("Game Starting");

                while (true)
                {
                    e.addEvent();
                    e.updateEconomy();
                    e.updateEconomy();
                    e.updateEconomy();
                    Thread.Sleep(1000);
                }
            }
        }
Exemplo n.º 2
0
 public Country()
 {
     funds = 10;
     clout = 10;
     economy = new Economy();
     military = new Military();
     politics = new Politics();
     climate = new Climate();
 }
Exemplo n.º 3
0
 public void addStat(Economy.stat e, int b)
 {
     stats[(int)e] += b;
 }