Exemple #1
0
        public string GetDescription()
        {
            string description = String.Format(
                "{0}: {1} - TML:{2} | {3} - WL:{4} | {5}",
                ((I_Player_Action)Actions_All[0]).Player.ToString(),
                MacroAction_Type.ToString(),
                Count_Total_Length(),
                MacroAction_WalkType.ToString(),
                Count_Walk_Length(),
                Find_Destination() == -1 ? "none" : Find_Destination().ToString()
                );

            return(description);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 17;

            foreach (var action in Actions_All)
            {
                hash = hash * 31 + action.GetHashCode();
            }
            foreach (var action in Actions_Executable_Now)
            {
                hash = hash * 31 + action.GetHashCode();
            }
            foreach (var action in Actions_Executable_Later)
            {
                hash = hash * 31 + action.GetHashCode();
            }
            hash = hash * 31 + MacroAction_Type.GetHashCode();
            hash = hash * 31 + MacroAction_WalkType.GetHashCode();

            return(hash);
        }