/// <summary> /// Runs list of commands. /// </summary> /// <param name="commands">List of commands parsed by ICommandParser implementation.</param> /// <returns>Returns last position of the object {x,y}.</returns> public int[] RunCommands(object commands) { return(ProcessCommandQueue(_cmdParser.ParseCommands(commands))); }