Beispiel #1
0
        internal ReplayStep ReadStep(GameField field, int stepNumb)
        {
            String           str        = sr.ReadLine();
            EntityCollection collection = null;
            ReplayAction     action     = null;

            while (!str.Contains("End step"))
            {
                if (str.Contains("Collection"))
                {
                    collection = ReadCollection(field);
                }
                if (str.Contains("Action"))
                {
                    action = ReadAction(field);
                }
                str = sr.ReadLine();
            }
            return(new ReplayStep(stepNumb, collection, action));
        }
Beispiel #2
0
 internal ReplayStep(int stepNumb, EntityCollection collection, ReplayAction action)
 {
     this.stepNumb   = stepNumb;
     this.collection = collection;
     this.action     = action;
 }
Beispiel #3
0
 internal ReplayStep(int stepNumb, EntityCollection collection, ReplayAction action)
 {
     this.stepNumb = stepNumb;
     this.collection = collection;
     this.action = action;
 }