Exemplo 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();
 }
Exemplo 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;
            }
        }
Exemplo n.º 3
0
 private OthelloData()
 {
     Statistics = new StatisticsHolder();
     OthelloOptions = new GameOptions();
 }