Exemple #1
0
    public static JamesVanAllen createInstance(Task.Callback c)
    {
        if (instance == null)
        {
            instance = new JamesVanAllen(c);
        }

        return(instance);
    }
Exemple #2
0
    //Create new game
    public GameSave()
    {
        buildings = new List <Building>();
        projects  = new List <Project>();
        tasks     = new List <Task>();

        tasks.Add(JamesVanAllen.createInstance(this));
        tasks.Add(ThorAble.createInstance(this));

        buildings.Add(new DollyMadisonHouse(this));
        projects.Add(new Pioneer1(this));

        money            = 100000000;
        awareness        = 500;
        currentDay       = 0;
        secondsRemaining = secondsPerDay;
        inProgressCount  = 0;
    }
Exemple #3
0
 private void initTasks()
 {
     tasks = new List <Task>();
     tasks.Add(JamesVanAllen.getInstance());
     tasks.Add(ThorAble.getInstance());
 }