Esempio n. 1
0
 public void setUp()
 {
     /* var ci =
         typeof(StatisticsHolder).GetConstructor(
         BindingFlags.NonPublic | BindingFlags.Instance, null, System.Type.EmptyTypes, null);
     statisticsHolder = (StatisticsHolder)ci.Invoke(System.Type.EmptyTypes);*/
     statisticsHolder = new StatisticsHolder();
 }
Esempio n. 2
0
        public void LoadData()
        {
            FileIO.CreateIfNotExists(r_AppDirectory);
            var statistics = (StatisticsHolder)FileIO.ReadObjectFrom(k_StatisticsFileName);
            if (statistics != null)
            {
                Statistics = statistics;
            }

            var options = (GameOptions)FileIO.ReadObjectFrom(k_OptionsFileName);
            if (options != null)
            {
                OthelloOptions = options;
            }
        }
Esempio n. 3
0
 private OthelloData()
 {
     Statistics = new StatisticsHolder();
     OthelloOptions = new GameOptions();
 }