Inheritance: GameStateAction
Example #1
0
        private Vector ToMoveInput(GameStateMoveAction gsma, List <PlayHint> hints)
        {
            double slotDistance = 0.0;
            int    movesMade    = gsma.GetTotalMadeMoves();


            return(new Vector());
        }
        public static string Serialize(GameStateMoveAction gsma)
        {
            StringBuilder sb = new StringBuilder();

            string s = (gsma.Move == null) ? "X" : gsma.Move.ToString();

            sb.Append(GameState.Serialize(gsma.Original) + "|" + GameState.Serialize(gsma.GameState) + "|" + gsma.Time + "|");

            foreach (TimedMove m in gsma.MadeMoves)
            {
                sb.Append(m.ToString() + " ");
            }

            sb.Append("|" + s);

            return(sb.ToString());
        }
        private Vector ToMoveInput(GameStateMoveAction gsma, List<PlayHint> hints)
        {
            double slotDistance = 0.0;
            int movesMade = gsma.GetTotalMadeMoves();

            return new Vector();
        }
        public static string Serialize(GameStateMoveAction gsma)
        {
            StringBuilder sb = new StringBuilder();

            string s = (gsma.Move == null) ? "X" : gsma.Move.ToString();

            sb.Append(GameState.Serialize(gsma.Original) + "|" + GameState.Serialize(gsma.GameState) + "|" + gsma.Time + "|");

            foreach (TimedMove m in gsma.MadeMoves)
                sb.Append(m.ToString() + " ");

            sb.Append("|" + s);

            return sb.ToString();
        }