Ejemplo n.º 1
0
        public void SerializeRoot()
        {
            if (TurnCount > 40)
            {
                return;
            }
            Stream stream = new FileStream(CurrentFolder + "" + Path.DirectorySeparatorChar + "Turn" + TurnCount.ToString() + "_" + SimuCount.ToString() + ".seed", FileMode.Create, FileAccess.Write, FileShare.None);

            byte[] mem = Debugger.Serialize(root);
            stream.Write(mem, 0, mem.GetLength(0));
            stream.Close();
        }
Ejemplo n.º 2
0
        public void Log(string msg)
        {
            if (TurnCount > 40)
            {
                return;
            }
            StreamWriter sw = new StreamWriter(CurrentFolder + "" + Path.DirectorySeparatorChar + "Turn" + TurnCount.ToString() + ".log", true);

            sw.WriteLine(msg);
            sw.Close();
        }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return(ChapterID.ToString() + " / Turns: " + TurnCount.ToString() + " / Heroes: " + HeroCharacterID_1.ToString() + ", " + HeroCharacterID_2.ToString());
 }